fix function calls for wifi checks

This commit is contained in:
Hunter 2024-10-08 10:02:51 -04:00
parent b90df4923d
commit 4b4fd01600
1 changed files with 3 additions and 2 deletions

View File

@ -52,10 +52,11 @@ void setup() {
void loop() {
unsigned int wifiRetryCount = 0;
if (WiFi.status != WL_CONNECTED){
if (WiFi.status() != WL_CONNECTED){
WiFi.disconnect();
WiFi.reconnect();
while (WiFi.status != WL_CONNECTED){
while (WiFi.status() != WL_CONNECTED){
if (wifiRetryCount++ > 5) return;
delay(1000);
}