Nano IoT, recovery from lost wifi?

I've got a few nano 33 Iot's running bme280's and sending data to node red. They work fairly well until they lose connection.

What is the best way to detect I lost connection?

If I notice I'm not connected can I just call setup() and start over?
Is there something like ESP.restart() for the Nano 33 IoT?

The boards will stay up for weeks and usually when I lose one I lose all three.

Thanks

NVIC_SystemReset();

if (WiFi.status() =! WL_CONNECTED) {

Thank you

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.