ESP8266 not connecting to Arduino Cloud IoT reliably

I have seen postings for similar problems, none have solved the issues completely. My project uses
DEEP-SLEEP and the devices are rebooting every minute (battery powered). During the setup process the device will sometimes connect to the Arduino IoT Cloud immediately, other times it won't connect for a few minutes. The device I'm using is a 8266, the WeMOS D1 mini. If I use the same code with a NANO 33 IoT, it always reconnects immediately. This is the code that stalls, a very common code.

  while(ArduinoCloud.connected() != 1)
  {
    ArduinoCloud.update();
    delay(500);
  }

I've even substituted two other WeMOS devices hoping the it was bad device. But all of the WeMOS devices were unreliable. The WeMOS is cheep, low power, and physically small, this is why I chose it for my project. By the way, the remainder of the code works nicely once the connection is completed.
My question is, does anyone have a suggestion on how to get the 8266 to connect reliably to the Arduino IoT Cloud.

Hello. I am running an ESP32 which used to work fine but now it is not very reliable. Did you solve the problem?

No, problem is unsolved. I have switched over to the Nano 33 IOT. I do have an ESP32, As i recall it connects faster than the WeMOS. Some of the issues are the Arduino Cloud itself. One issue in general is that the connection speed, another in how quick the Cloud parameters are changed. I’ve had to call “CloudUpdate()” after I make Cloud parameter changes to insure they are updated for the following code to see these, so don’t count on calling it only once per pass through your “LOOP” code. No, I don’t have any suggestions for a suddenly unstable ESP32 other than the usual check check power supply stability and over heating issues, I would need more specific information on what you doing.

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