We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6cc2a32 commit df5168eCopy full SHA for df5168e
examples/BasicWrite/BasicWrite.ino
@@ -53,7 +53,7 @@ void setup() {
53
wifiMulti.addAP(WIFI_SSID, WIFI_PASSWORD);
54
while (wifiMulti.run() != WL_CONNECTED) {
55
Serial.print(".");
56
- delay(100);
+ delay(500);
57
}
58
Serial.println();
59
@@ -83,8 +83,9 @@ void loop() {
83
Serial.print("Writing: ");
84
Serial.println(client.pointToLineProtocol(sensor));
85
// If no Wifi signal, try to reconnect it
86
- if ((WiFi.RSSI() == 0) && (wifiMulti.run() != WL_CONNECTED))
+ if (wifiMulti.run() != WL_CONNECTED) {
87
Serial.println("Wifi connection lost");
88
+ }
89
// Write point
90
if (!client.writePoint(sensor)) {
91
Serial.print("InfluxDB write failed: ");
0 commit comments