|
|
@ -237,6 +237,9 @@ void ICACHE_FLASH_ATTR sendValues() { |
|
|
|
rssiObject["value"] = sd.rssi; |
|
|
|
root["rssi"] = sd.rssi; |
|
|
|
|
|
|
|
root["millis"] = millis(); |
|
|
|
root["heap"] = ESP.getFreeHeap(); |
|
|
|
|
|
|
|
|
|
|
|
char buffer[500]; |
|
|
|
array.printTo(buffer, sizeof(buffer)); |
|
|
@ -361,6 +364,10 @@ void ICACHE_FLASH_ATTR sendValues() { |
|
|
|
mqttclient.loop(); |
|
|
|
mqttclient.disconnect(); |
|
|
|
|
|
|
|
if (sd.rssi == 0) { // re-read rssi if zero
|
|
|
|
sd.rssi = WiFi.RSSI(); |
|
|
|
} |
|
|
|
|
|
|
|
if (loop_count == 1) { |
|
|
|
XD0OTA ota; |
|
|
|
ota.update(); |
|
|
@ -407,7 +414,7 @@ void setup() { |
|
|
|
|
|
|
|
geigeraverage.clear(); |
|
|
|
|
|
|
|
previousMillis = millis(); |
|
|
|
previousMillis = rtcMillis(); |
|
|
|
|
|
|
|
DEBUG_MSG("ready.\n"); //Serial.flush();
|
|
|
|
} |
|
|
|