Browse Source

save rssi while connected

lightsleep
Hendrik Langer 7 years ago
parent
commit
5f743b4437
  1. 3
      src/main.cpp

3
src/main.cpp

@ -206,7 +206,7 @@ void ICACHE_FLASH_ATTR sendValues() {
JsonObject& rssiObject = array.createNestedObject();
rssiObject["sensor"] = SENSOR8_ID;
rssiObject["value"] = WiFi.RSSI();
rssiObject["value"] = sd.rssi;
char buffer[500];
@ -276,6 +276,7 @@ void ICACHE_FLASH_ATTR sendValues() {
last_dhcp = millis();
}
sd.rssi = WiFi.RSSI();
int httpCode = 0;
for (int tries=0; tries<3 && httpCode != HTTP_CODE_CREATED; tries++) {

Loading…
Cancel
Save