If wifi disconnects, consumption increases

Hi, I'm trying to make a program with an arduino nano 33 iot in a lower signal wifi and with elevated temperatures (up to 40 °C) and humidity.
The problem occurs when the board lose the wifi connection and tries to reconnect.
While is trying to reconnect the consumption increases considerably and, therefore, the board temperature.
It's possible to control the wifi and if the signal is lost only tries to reconnect, for example, every 10 minutes?

I don't own one of those but with the ESP32 WiFi class, you have Wi-Fi events which can be useful to detect that a connection was lost. You define the callbacks using WiFi.onEvent() something like

  WiFi.onEvent(connectedCallback, SYSTEM_EVENT_STA_CONNECTED);
  WiFi.onEvent(gotIPCallback, SYSTEM_EVENT_STA_GOT_IP);
  WiFi.onEvent(disconnectedCallback, SYSTEM_EVENT_STA_DISCONNECTED);

where connectedCallback, gotIPCallback and disconnectedCallback are custom functions where you decide what to do.

may be the same exists for the arduino nano 33 iot? double check the WiFiNINA API

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