Download this file
#ifndef RELAY_CONTROLLER_H
#define RELAY_CONTROLLER_H
#define SENSORS_PORT 3
#define RELAY_PORT 4
#include
extern HardwareSerial Serial;
#define BUFFER_LEN 12
#define SLAVE_ID 1
#define MASTER_ID 2
#define HEATER_GROUP 43
#define SEND_RETRY_COUNT 3
#define SEND_RETRY_TIMEOUT 3000
#define SHOW_BUFFER(tag, hdr, buf, len) \
Serial.print(tag); \
if (hdr & RF12_HDR_CTL) Serial.print("CTL "); \
if (hdr & RF12_HDR_DST) Serial.print("DST "); \
if (hdr & RF12_HDR_ACK) Serial.print("ACK "); \
Serial.print(hdr & RF12_HDR_MASK, DEC); \
Serial.print(" [ "); \
for (int i=0; i