You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi - Thanks for this great library. I've just started playing, and would like to force the ESP32S to reboot automatically if it is not connected to wifi. I looked at the src and saw that in line 971 you are returning a boolean, not a bool. See arduino/Arduino#4673
I'll gen a Pull Request once I've sussed it out. I was trying to do this in my code:
if (iotWebConf.checkWifiConnection) {
// do something
}
Is there a better/easier way that you are aware of?
Thank you for the quick reply. Yeah, it threw me out till I found that post! I also discovered my error as well - I had not included the all important () after the function call. The call went through the if statement then. I realise now that the bool vs boolean was a red-herring - oops! sorry!
Feel free to ditch the PR - it isn't needed now I've fixed my code. It was an interesting tangent for me personally though.
Hi - Thanks for this great library. I've just started playing, and would like to force the ESP32S to reboot automatically if it is not connected to wifi. I looked at the src and saw that in line 971 you are returning a boolean, not a bool. See arduino/Arduino#4673
I'll gen a Pull Request once I've sussed it out. I was trying to do this in my code:
Is there a better/easier way that you are aware of?
Cheers,
Richie
Line:
IotWebConf/src/IotWebConf.cpp
Line 971 in 7745fcb
The text was updated successfully, but these errors were encountered: