mirror of
https://github.com/timmbogner/Farm-Data-Relay-System
synced 2024-11-10 07:10:42 +00:00
fixed device 5 issue and changed filenames
This commit is contained in:
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");
|
||||||
|
|
||||||
}
|
}
|
||||||
|
2
Examples/FDRS_Install/Instructions.txt
Normal file
2
Examples/FDRS_Install/Instructions.txt
Normal file
@ -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.
|
6
Examples/FDRS_Install/fdrs_credentials.h
Normal file
6
Examples/FDRS_Install/fdrs_credentials.h
Normal file
@ -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…
Reference in New Issue
Block a user