Skip to content

Commit

Permalink
WiFi.SSID() is not valid after upgrade from old version and not in ne…
Browse files Browse the repository at this point in the history
…w versions so don't use is
  • Loading branch information
JeroenSt committed Mar 21, 2021
1 parent 1b91e07 commit a325a65
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion espMQTT.ino
Original file line number Diff line number Diff line change
Expand Up @@ -1860,7 +1860,7 @@ void loop()

for (int i = 0; i < wifinetworksfound; i++)
{
if (WiFi.SSID(i) == WiFi.SSID())
if (WiFi.SSID(i) == wifissid.c_str())
{
if (strongestwifirssi < WiFi.RSSI(i))
{
Expand Down

0 comments on commit a325a65

Please sign in to comment.