diff --git a/Examples/5_MQTT_Gateway/5_MQTT_Gateway.ino b/Examples/5_MQTT_Gateway/5_MQTT_Gateway.ino index 1d79e49..b4a7cc6 100644 --- a/Examples/5_MQTT_Gateway/5_MQTT_Gateway.ino +++ b/Examples/5_MQTT_Gateway/5_MQTT_Gateway.ino @@ -48,13 +48,13 @@ void setup() { delay(10); WiFi.begin(ssid, password); while (WiFi.status() != WL_CONNECTED) { - DBG("Connecting to Wifi..."); + DBG("Connecting to WiFi..."); delay(500); } DBG("WiFi Connected"); client.setServer(mqtt_server, 1883); if (!client.connected()) { - DBG("Connecting mqtt..."); + DBG("Connecting MQTT..."); reconnect(); } DBG("MQTT Connected"); @@ -71,8 +71,8 @@ void setup() { } DBG(" LoRa initialized."); #endif - // UART_IF.println(sizeof(DataReading)); - + + //DBG(sizeof(DataReading)); client.publish(TOPIC_STATUS, "FDRS initialized"); } diff --git a/Examples/FDRS_Install/Instructions.txt b/Examples/FDRS_Install/Instructions.txt new file mode 100644 index 0000000..761cec1 --- /dev/null +++ b/Examples/FDRS_Install/Instructions.txt @@ -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. \ No newline at end of file diff --git a/Examples/FDRS_Install/fdrs_credentials.h b/Examples/FDRS_Install/fdrs_credentials.h new file mode 100644 index 0000000..6d3dab2 --- /dev/null +++ b/Examples/FDRS_Install/fdrs_credentials.h @@ -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 \ No newline at end of file diff --git a/Examples/FDRS_common_files/FDRSdefaults.h b/Examples/FDRS_Install/fdrs_defaults.h similarity index 100% rename from Examples/FDRS_common_files/FDRSdefaults.h rename to Examples/FDRS_Install/fdrs_defaults.h diff --git a/Examples/FDRS_common_files/Explanation.txt b/Examples/FDRS_common_files/Explanation.txt deleted file mode 100644 index 01d994e..0000000 --- a/Examples/FDRS_common_files/Explanation.txt +++ /dev/null @@ -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 \ No newline at end of file