You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Farm-Data-Relay-System/FDRS_Gateway2000/fdrs_config.h

22 lines
626 B
C

// To configure FDRS:
// Each device in the system has a unique, one-byte address which
// is assigned to the last digit of its MAC address at startup.
// Each relay receives data from its pre-programmed "PREV_MAC" device and
// sends the packet verbatim to the address corresponding to "NEXT_MAC".
// The gateway receives the data and outputs it as a json string over the serial port.
//#define USE_WIFI //You cannot use ESP-NOW while WiFi is in use
#define USE_LORA
// THIS UNIT
#define UNIT_MAC 0x00
// NEXT UNIT
#define NEXT_MAC 0x02
// PREVIOUS UNIT
#define PREV_MAC 0x01