mirror of
https://github.com/timmbogner/Farm-Data-Relay-System
synced 2024-11-10 07:10:42 +00:00
Add files via upload
This commit is contained in:
parent
72435c53b3
commit
a80b8d70fd
@ -28,16 +28,18 @@ const char* password = WIFI_PASS;
|
||||
const char* mqtt_server = MQTT_ADDR;
|
||||
#endif
|
||||
|
||||
#ifdef USE_LORA
|
||||
void sendLoRa() {
|
||||
#ifdef USE_LORA
|
||||
LoRa.beginPacket();
|
||||
LoRa.write((uint8_t*)&theData, ln);
|
||||
LoRa.endPacket();
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
||||
void setup() {
|
||||
Serial.begin(115200);
|
||||
//Serial.begin(115200);
|
||||
Serial.begin(115200, SERIAL_8N1, RXD2, TXD2);
|
||||
|
||||
begin_espnow();
|
||||
#ifdef USE_WIFI
|
||||
delay(10);
|
||||
|
@ -2,7 +2,8 @@
|
||||
//
|
||||
// GATEWAY 2.000 Configuration
|
||||
// This is still in progress. Stay tuned!
|
||||
|
||||
#define RXD2 21
|
||||
#define TXD2 22
|
||||
#define UNIT_MAC 0x00// THIS UNIT
|
||||
#define PREV_MAC 0x01// ESPNOW1 Address
|
||||
#define NEXT_MAC 0x02// ESPNOW2 Address
|
||||
|
Loading…
Reference in New Issue
Block a user