2022-05-20 19:34:09 +00:00
|
|
|
#define UNIT_MAC 0xFC // THIS UNIT
|
|
|
|
#define ESPNOW1_PEER 0xFD // ESPNOW1 Address
|
|
|
|
#define ESPNOW2_PEER 0xFE // ESPNOW2 Address
|
|
|
|
#define LORA1_PEER 0xFD // LoRa1 Address
|
|
|
|
#define LORA2_PEER 0xFE // LoRa2 Address
|
2022-02-06 14:47:33 +00:00
|
|
|
|
|
|
|
#define ESPNOW1_DELAY 0
|
|
|
|
#define ESPNOW2_DELAY 0
|
|
|
|
#define ESPNOWG_DELAY 0
|
|
|
|
#define SERIAL_DELAY 0
|
|
|
|
#define MQTT_DELAY 0
|
2022-03-08 17:00:09 +00:00
|
|
|
#define LORAG_DELAY 1000
|
|
|
|
#define LORA1_DELAY 1000
|
|
|
|
#define LORA2_DELAY 1000
|
2022-02-06 14:47:33 +00:00
|
|
|
|
2022-02-07 17:43:36 +00:00
|
|
|
#define ESPNOW1_ACT
|
|
|
|
#define ESPNOW2_ACT
|
|
|
|
#define ESPNOWG_ACT
|
|
|
|
#define SERIAL_ACT
|
|
|
|
#define MQTT_ACT
|
2022-02-17 06:12:18 +00:00
|
|
|
#define LORAG_ACT
|
|
|
|
#define LORA1_ACT
|
|
|
|
#define LORA2_ACT
|
2022-02-06 14:47:33 +00:00
|
|
|
|
2022-02-17 06:12:18 +00:00
|
|
|
//#define RXD2 21
|
|
|
|
//#define TXD2 22
|
2022-02-06 14:47:33 +00:00
|
|
|
|
|
|
|
#define WIFI_NET "Your SSID"
|
|
|
|
#define WIFI_PASS "Password"
|
|
|
|
#define MQTT_ADDR "192.168.0.8"
|
|
|
|
|
|
|
|
//#define USE_LORA
|
|
|
|
#define SCK 5
|
|
|
|
#define MISO 19
|
|
|
|
#define MOSI 27
|
|
|
|
#define SS 18
|
|
|
|
#define RST 14
|
|
|
|
#define DIO0 26
|
|
|
|
//433E6 for Asia
|
|
|
|
//866E6 for Europe
|
|
|
|
//915E6 for North America
|
|
|
|
#define BAND 915E6
|
2022-02-07 17:43:36 +00:00
|
|
|
|
2022-03-08 17:00:09 +00:00
|
|
|
//#define USE_LED
|
|
|
|
#define LED_PIN 32
|
|
|
|
#define NUM_LEDS 4
|
|
|
|
|
2022-02-07 17:43:36 +00:00
|
|
|
#define MAC_PREFIX 0xAA, 0xBB, 0xCC, 0xDD, 0xEE
|
2022-03-08 17:00:09 +00:00
|
|
|
#define UART_IF Serial1
|