Firmware - BitKnitting/should_I_water GitHub Wiki
The watering puck
Traffic
The Rasp Pi sends the watering puck a _START_WATERING_PACKET. The data part of the packet contains:
struct __attribute__((packed)) wateringInfo_t // not sending battery info because plugged into 24VAC.
{
uint8_t packet_type;
uint8_t node_id_watering_puck;
uint8_t node_id_sender;
uint8_t valve_id;
uint8_t watering_minutes;
};
- 1st byte: The packet type set to _START_WATERING_PACKET.
- 2nd byte: The node ID of the watering puck.
- 3rd byte: The node ID of the sender.
- 4th byte: The valve ID of the valve that should be turned on/off.
- 5th byte: The number of minutes to water.