my_sensors v0.1.0-rc2 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
Transport
s to implement.- UART Transport ->
A transport to a
serial_gateway
sketch. - TCP Transport ->
A transport to a
ethernet_gateway
sketch.
- 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_update
delete
anddata
will be anyNode
,Sensor
, orSensorValue
struct
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