Leaving this here in case someone ever needs int :-)

This commit is contained in:
Thomas Göttgens
2023-02-23 22:54:07 +01:00
parent eb4ab26e1f
commit 0940c6462b
7 changed files with 59 additions and 4 deletions

View File

@@ -833,7 +833,7 @@ void handleScanNetworks(HTTPRequest *req, HTTPResponse *res)
if (WiFi.encryptionType(i) != WIFI_AUTH_OPEN) {
JSONObject thisNetwork;
thisNetwork["ssid"] = new JSONValue(ssidArray);
thisNetwork["rssi"] = new JSONValue(WiFi.RSSI(i));
thisNetwork["rssi"] = new JSONValue(int(WiFi.RSSI(i)));
networkObjs.push_back(new JSONValue(thisNetwork));
}
// Yield some cpu cycles to IP stack.