Add files via upload

This commit is contained in:
Timm Bogner 2021-12-07 20:55:02 -06:00 committed by GitHub
parent 72435c53b3
commit a80b8d70fd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 7 additions and 4 deletions

View File

@ -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);

View File

@ -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