fixed device 5 issue and changed filenames

pull/10/head
Timm Bogner 2 years ago
parent feb09755d2
commit 2669fac3cb

@ -48,13 +48,13 @@ void setup() {
delay(10); delay(10);
WiFi.begin(ssid, password); WiFi.begin(ssid, password);
while (WiFi.status() != WL_CONNECTED) { while (WiFi.status() != WL_CONNECTED) {
DBG("Connecting to Wifi..."); DBG("Connecting to WiFi...");
delay(500); delay(500);
} }
DBG("WiFi Connected"); DBG("WiFi Connected");
client.setServer(mqtt_server, 1883); client.setServer(mqtt_server, 1883);
if (!client.connected()) { if (!client.connected()) {
DBG("Connecting mqtt..."); DBG("Connecting MQTT...");
reconnect(); reconnect();
} }
DBG("MQTT Connected"); DBG("MQTT Connected");
@ -71,8 +71,8 @@ void setup() {
} }
DBG(" LoRa initialized."); DBG(" LoRa initialized.");
#endif #endif
// UART_IF.println(sizeof(DataReading));
//DBG(sizeof(DataReading));
client.publish(TOPIC_STATUS, "FDRS initialized"); client.publish(TOPIC_STATUS, "FDRS initialized");
} }

@ -0,0 +1,2 @@
Please copy this directory into your Arduino "libraries" directory.
Edit the "fdrs_credentials.h" with your WiFi info, LoRa band, etc.

@ -0,0 +1,6 @@
#define my_SSID ""
#define my_PASSWORD ""
#define my_MQTT_BROKER "192.168.0.203"
#define my_BAND 433.2E6
#define my_SF 7

@ -1,11 +0,0 @@
Please copy the "FDRS_common_files" directory to your Arduino library directory
add a file "FDRScredentials.h" to this directory with this content:
#define my_SSID ""
#define my_PASSWORD ""
#define my_MQTT_BROKER "192.168.0.203"
#define my_BAND 433.2E6
#define my_SF 7
Fill in your stuff and save it
Loading…
Cancel
Save