Skip to content

Commit

Permalink
Bug fix
Browse files Browse the repository at this point in the history
Patching incorrect int casting into String on WiFi.RSSI()
  • Loading branch information
mdelain authored Jan 11, 2025
1 parent 919d489 commit 0f81dfe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/LiveObjectsWiFi.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ void LiveObjectsWiFi::messageCallback(int msg)
void LiveObjectsWiFi::addNetworkInfo()
{
String tmp;
tmp = WiFi.RSSI();
tmp = String(WiFi.RSSI());
tmp += " dbm";
if(m_Protocol == MQTT && m_Encoding==TEXT) addToPayload(easyDataPayload[JSONVALUE].createNestedObject("networkInfo"),"mac",m_sMac,"ssid",SECRET_SSID,"ip",m_sIP,"strength",tmp);
else addToPayload(m_sMac,SECRET_SSID,m_sIP,tmp);
Expand Down

0 comments on commit 0f81dfe

Please sign in to comment.