my_sensors v0.1.0-rc2 MySensors.Packet
MySensors packet.
Shaped like: 1;2;3;4;5;6
-
1 Packet node_id - Destination node for packet.
- 0 Will always be the Gateway.
- 255 is broadcast.
2 Packet sensor_id - Sensor on a particular node.
- 0 is reserved.
- 255 is the node_type (ARDUINO_NODE | ARDUINO_REPEATER_NODE)
3 Packet command
- PRESENTATION
- SET
- REQ
- INTERNAL
- STREAM
4 Packet ACK
- 1 is ACK
- 0 is NOACK
5 Packet type
- Varies based on Packet Command.
- 6 Payload
Link to this section Summary
Link to this section Types
Link to this section Functions
Link to this function
ack(arg1)
Link to this function
command(arg1)
Parse a packet command
.
Link to this function
decode(binary)
Link to this function
encode(packet)
Link to this function
type(t, arg2)
Parse a packet type
based on a command
.