my_sensors v0.2.0 API Reference
Modules
The MySensors part of the app has a few parts:
- Packet - An Elixir Parsed packet.
Gateway - Handles parsed Packets.
Gateway.Transport - A GenStage behaviour for
Transports to implement.- UART Transport ->
A transport to a
serial_gatewaysketch. - TCP Transport ->
A transport to a
ethernet_gatewaysketch.
- UART Transport ->
A transport to a
- Repo - Database to store Node, Sensor, and SensorValue data
Elixir Broadcast mechanism for MySensors data.
Will receive messages in the shape of:
{:my_sensors, {type, data}}
where type will be:
insert_or_updatedeleteanddatawill be aNodestruct
Repo Context for MySensors
Handles parsed MySensors packets
Node Object
MySensors packet
Constant values for MySensors packets. Using this module will define module attributes for the MySensors constants. Most things defined from MyMessage.h
Repository for local MySensors Data
Sensor Object
SensorValue Object
Behaviour for MySensors transports to implement
Elixir GenServer implementation of a MySensors.Transport
Fake Node that operates on the Local Transport
UART Tranport for MySensors