Am I the only one who is having problems with updates either being lost or seriously delayed? I have several sliders on my IoT dashboard and in my nano 33 IoT device I have simple code that moves a servo arm and echos back to the messenger control that it received the message and what the new value is. If I slide the slider back and forth a few times, it stops moving the servo and the messages stop coming through. Then a couple minutes later suddenly one of the messages comes and the servo moves.
Are you experiencing this too?
Hi @prestonthayne it was a temporary issue, You can check the status of the cloud using this link:
I'm also VERY disappointed with the Arduino IOT cloud. I spent over a month developing a system to monitor the temperature of my batteries, and run heaters when cold. Everything works perfectly when the arduino is connected to my PC with USB cable, but as soon as I moved it to the garage where it's supposed to exist, the connection keeps becoming unresponsive. The WiFi connects no problem, i've checked signal strength in the garage etc. It's just that the MQQT broker keeps becoming unavailable. I have a paid subscription.
The usual link claims that everything should be fine.
Can anyone recommend an IOT service which is reliable?? I'm already looking at adafruit.io.
Hi @nibor65
This is a clear indication that the problem is unrelated to the Arduino Cloud service, but instead cause by some difference between the conditions that exist when the board is connected to your PC vs. when it is in the garage.
If so, changing to a different service is not going to solve the problem.
A common cause of the general symptom "it works when connected to my PC, but not when powered separately" is that the sketch code is dependent on having a serial connection. For example, You'll often see something like this in Arduino sketches:
while (!Serial) {
; // wait for serial port to connect. Needed for native USB port only
}
This will make your program stay in an infinite loop until the serial port is opened in Arduino IDE Serial Monitor (or an equivalent application). The reason that is useful is because on native USB boards like yours, the board is not reset when you open Serial Monitor. That means any serial output printed between the time the program starts running and when you get Serial Monitor open will be lost.
In applications where missing that serial output would be a problem, it's useful to add this code to the sketch in order to make the program wait for the Serial Monitor before running.
However, if you are wanting to run your program when the board is not connected to Serial Monitor, you must remove that while loop to allow the rest of the sketch to run.
There is sometimes a more subtle dependency on a serial connection in that the Serial.print calls are acting as incidental short delays that cause the code to work as expected.
Another possible cause of the symptoms you report is that the power source you are using in the garage is insufficient. This can result in intermittent problems. Wi-Fi radio modules draw significant amounts of current in spikes of varying amplitude. So you can have a situation where the power supply is just barely sufficient the majority of the time, but can't handle the occasional more significant draw. When that happens, it isn't equivalent to a full power cycle and the program might be stuck in some bad state. A PC is a very high quality power supply, so you are less likely to experience this type of problem when powering a project from a USB connection to the PC.
I thought of the serial thing. That's not the problem, it works sometimes in the garage.
As for the PSU, I'm using a dedicated mains adapter, and it worked fine a lot of the time.
I suspected that it was because a WiFi extender was in the chain, so I've turned that off and spent a LOT of time moving my router closer. Now the WiFi in the garage is excellent for other devices.
I've also tried using my other Uno R4.
Currently it's consistently crashing after a few cycles:
cycle ms:6000 majorCycle:60
WiFi.status(): 0
Current WiFi Firmware: 0.3.0
0 1 2 3 4 5 6 7 using pin 7 for DS18B20s
s01_cycleMargin -3938
cycles: 1
s01_cycleMargin 2026
waiting, cyclemargin =308
waiting, cyclemargin =28
cycles: 2
Connected to "Broadcom_86688820"
s01_cycleMargin 5920
0 1 2 3 4 5 6 7 using pin 8 for DS18B20s
waiting, cyclemargin =942
waiting, cyclemargin =133
waiting, cyclemargin =0
cycles: 3
TimeServiceClass::sync Drift: -12 RTC value: 1702938155
DHT22 sensor: 1 failed to read.
s01_cycleMargin 5824
0 1 2 3 4 5 6 7 using pin 7 for DS18B20s
waiting, cyclemargin =926
waiting, cyclemargin =130
waiting, cyclemargin =-1
cycles: 4
s01_cycleMargin 4222
waiting, cyclemargin =669
waiting, cyclemargin =88
waiting, cyclemargin =-8
cycles: 5
s01_cycleMargin 5911
0 1 2 3 4 5 6 7 using pin 8 for DS18B20s
waiting, cyclemargin =939
waiting, cyclemargin =132
waiting, cyclemargin =0
cycles: 6
s01_cycleMargin 5781
0 1 2 3 4 5 6 7 using pin 7 for DS18B20s
waiting, cyclemargin =919
waiting, cyclemargin =128
waiting, cyclemargin =-1
cycles: 7
ArduinoIoTCloudTCP::handle_WaitDeviceConfig device waiting for valid thing_id
s01_cycleMargin 5533
0 1 2 3 4 5 6 7 using pin 8 for DS18B20s
waiting, cyclemargin =878
waiting, cyclemargin =123
waiting, cyclemargin =-2
cycles: 8
s01_cycleMargin 5430
0 1 2 3 4 5 6 7 using pin 7 for DS18B20s
waiting, cyclemargin =861
waiting, cyclemargin =120
waiting, cyclemargin =-3
cycles: 9
s01_cycleMargin 5919
0 1 2 3 4 5 6 7 using pin 8 for DS18B20s
waiting, cyclemargin =942
waiting, cyclemargin =133
waiting, cyclemargin =0
cycles: 10
s01_cycleMargin 5953
0 1 2 3 4 5 6 7 using pin 7 for DS18B20s
waiting, cyclemargin =947
waiting, cyclemargin =133
waiting, cyclemargin =0
cycles: 11
Connected to Arduino IoT Cloud
Thing ID: de8ec742-debb-4fcd-9f7f-4a19fa0161e4
DHT22 sensor: 2 failed to read.
s01_cycleMargin 5271
0 1 2 3 4 5 6 7 using pin 8 for DS18B20s
waiting, cyclemargin =835
waiting, cyclemargin =114
waiting, cyclemargin =-4
cycles: 12
s01_cycleMargin 5931
0 1 2 3 4 5 6 7 using pin 7 for DS18B20s
waiting, cyclemargin =944
waiting, cyclemargin =133
waiting, cyclemargin =0
cycles: 13
Firmware name: "/tmp/arduino-build-660102A39EA9D455BDEF1157CDF2FEAE/BareMinimum-162F852326A2ED332F79B916C1021DA6.ino", compiled on: Nov 28 2023
Fault on interrupt or bare metal(no OS) environment
Error: Main stack(200075d8) was overflow
===== Thread stack information =====
addr: 20007b00 data: 20007b4c
addr: 20007b04 data: 00000044
addr: 20007b08 data: 200067b0
addr: 20007b0c data: 00016813
addr: 20007b10 data: 00000000
addr: 20007b14 data: 20007b4c
addr: 20007b18 data: 00000044
addr: 20007b1c data: 00016835
addr: 20007b20 data: 20007b4c
addr: 20007b24 data: 0001686b
addr: 20007b28 data: 20006060
addr: 20007b2c data: 0001686b
addr: 20007b30 data: 20000094
addr: 20007b34 data: 20007b4c
addr: 20007b38 data: 20006520
addr: 20007b3c data: 000167eb
addr: 20007b40 data: 20007b78
addr: 20007b44 data: 000087b9
addr: 20007b48 data: 20000094
addr: 20007b4c data: 20007b8c
addr: 20007b50 data: 20006520
addr: 20007b54 data: 000167eb
addr: 20007b58 data: 20007b78
addr: 20007b5c data: 00008dff
addr: 20007b60 data: 20006060
addr: 20007b64 data: 00000000
addr: 20007b68 data: 20006008
addr: 20007b6c data: 00000000
addr: 20007b70 data: 00000000
addr: 20007b74 data: 00000000
addr: 20007b78 data: 20007bc4
addr: 20007b7c data: 0001686b
addr: 20007b80 data: 00000000
addr: 20007b84 data: 20006060
addr: 20007b88 data: 20006008
addr: 20007b8c data: 20006110
addr: 20007b90 data: 00000000
addr: 20007b94 data: 00000000
addr: 20007b98 data: 20006060
addr: 20007b9c data: 00000000
addr: 20007ba0 data: 00008789
addr: 20007ba4 data: 0000879f
addr: 20007ba8 data: 20000094
addr: 20007bac data: 20007bc4
addr: 20007bb0 data: 20006060
addr: 20007bb4 data: 000167eb
addr: 20007bb8 data: 20006008
addr: 20007bbc data: 00008f29
addr: 20007bc0 data: 00000000
addr: 20007bc4 data: 20005d28
addr: 20007bc8 data: 20007cd8
addr: 20007bcc data: 0001e50f
addr: 20007bd0 data: 20007c50
addr: 20007bd4 data: 00000000
addr: 20007bd8 data: 20000098
addr: 20007bdc data: 20007cd8
addr: 20007be0 data: 0001e481
addr: 20007be4 data: 20007c1c
addr: 20007be8 data: 20007cf8
addr: 20007bec data: 0001e50f
addr: 20007bf0 data: 20007c70
addr: 20007bf4 data: 00000000
addr: 20007bf8 data: 20000098
addr: 20007bfc data: 20007cf8
addr: 20007c00 data: 0001e481
addr: 20007c04 data: 20007c3c
addr: 20007c08 data: 20007cf8
addr: 20007c0c data: 0001e50f
addr: 20007c10 data: 20007c70
addr: 20007c14 data: 20007cb1
addr: 20007c18 data: 20000098
addr: 20007c1c data: 20007cf8
addr: 20007c20 data: 0001e481
addr: 20007c24 data: 00000004
addr: 20007c28 data: 00000001
addr: 20007c2c data: 0001c123
addr: 20007c30 data: 0001e481
addr: 20007c34 data: 00000000
addr: 20007c38 data: 20007c00
addr: 20007c3c data: 0001e50f
addr: 20007c40 data: 20007cf8
addr: 20007c44 data: 20007d58
addr: 20007c48 data: 20007d58
addr: 20007c4c data: 0001e50f
addr: 20007c50 data: 20007cd0
addr: 20007c54 data: 00000000
addr: 20007c58 data: 20000098
addr: 20007c5c data: 20007d58
addr: 20007c60 data: 0001e481
addr: 20007c64 data: 20007c9c
addr: 20007c68 data: 20007d58
addr: 20007c6c data: 0001e50f
addr: 20007c70 data: 20007cd0
addr: 20007c74 data: 00000000
addr: 20007c78 data: 20000000
addr: 20007c7c data: 20007d58
addr: 20007c80 data: 0001e481
addr: 20007c84 data: 20007cc8
addr: 20007c88 data: 20007cc8
addr: 20007c8c data: 20002890
addr: 20007c90 data: 00000004
addr: 20007c94 data: fffffff1
addr: 20007c98 data: 00000072
addr: 20007c9c data: 00000072
addr: 20007ca0 data: 00000001
addr: 20007ca4 data: 20002450
addr: 20007ca8 data: 00000072
addr: 20007cac data: 000100bf
addr: 20007cb0 data: 00015782
addr: 20007cb4 data: 010f0017
addr: 20007cb8 data: 00000000
addr: 20007cbc data: ffffffff
addr: 20007cc0 data: 20007cc8
addr: 20007cc4 data: 000100bf
addr: 20007cc8 data: 00000001
addr: 20007ccc data: ffffff04
addr: 20007cd0 data: 0000000a
addr: 20007cd4 data: 00000000
addr: 20007cd8 data: 00000001
addr: 20007cdc data: 20002890
addr: 20007ce0 data: 20007e08
addr: 20007ce4 data: 00000000
addr: 20007ce8 data: 00000000
addr: 20007cec data: 00010977
addr: 20007cf0 data: 20007e08
addr: 20007cf4 data: 0000000a
addr: 20007cf8 data: 20007e08
addr: 20007cfc data: 20000f80
addr: 20007d00 data: 20007e08
addr: 20007d04 data: ffffffe9
addr: 20007d08 data: 20002474
addr: 20007d0c data: 20007e08
addr: 20007d10 data: 00000000
addr: 20007d14 data: 00000001
addr: 20007d18 data: 0ccccccc
addr: 20007d1c data: 00015bc5
addr: 20007d20 data: 00015b94
addr: 20007d24 data: 010f0000
addr: 20007d28 data: 0ccccccc
addr: 20007d2c data: 00015bab
addr: 20007d30 data: 00015bc4
addr: 20007d34 data: 610f0000
addr: 20007d38 data: 0000a548
addr: 20007d3c data: 610f0000
addr: 20007d40 data: 00000400
addr: 20007d44 data: 20007d88
addr: 20007d48 data: 20006eb8
addr: 20007d4c data: 000197f9
addr: 20007d50 data: 000003ff
addr: 20007d54 data: 0000a16d
addr: 20007d58 data: 20007d88
addr: 20007d5c data: 000003ff
addr: 20007d60 data: 00000403
addr: 20007d64 data: 00000000
addr: 20007d68 data: 20007e00
addr: 20007d6c data: 20007d88
addr: 20007d70 data: 00000000
addr: 20007d74 data: 00000333
addr: 20007d78 data: 000003ff
addr: 20007d7c data: 20003b38
addr: 20007d80 data: 00000001
addr: 20007d84 data: ffffffe9
addr: 20007d88 data: 20007e00
addr: 20007d8c data: 00000030
addr: 20007d90 data: ffffffff
addr: 20007d94 data: 00000000
addr: 20007d98 data: 0ccccccc
addr: 20007d9c data: 0000bc5b
addr: 20007da0 data: 0000bbe4
addr: 20007da4 data: 010f0000
addr: 20007da8 data: 20000f8c
addr: 20007dac data: 20002450
addr: 20007db0 data: 20007e08
addr: 20007db4 data: 20007e20
addr: 20007db8 data: 0002055f
addr: 20007dbc data: 20000dc4
addr: 20007dc0 data: 05460000
addr: 20007dc4 data: 0000a6df
addr: 20007dc8 data: 20000f80
addr: 20007dcc data: 20007df0
addr: 20007dd0 data: 00000000
addr: 20007dd4 data: 000003ff
addr: 20007dd8 data: 20000f80
addr: 20007ddc data: 00000001
addr: 20007de0 data: 20000094
addr: 20007de4 data: 00000000
addr: 20007de8 data: 00000300
addr: 20007dec data: 0000bc69
addr: 20007df0 data: 00020707
addr: 20007df4 data: 00000021
addr: 20007df8 data: 20000e64
addr: 20007dfc data: 00000001
addr: 20007e00 data: 00000001
addr: 20007e04 data: ffffffe9
addr: 20007e08 data: 200063f0
addr: 20007e0c data: 20007e97
addr: 20007e10 data: 20007e98
addr: 20007e14 data: 200063ef
addr: 20007e18 data: 20000094
addr: 20007e1c data: 20007e74
addr: 20007e20 data: 20007e74
addr: 20007e24 data: 00000032
addr: 20007e28 data: 200063d0
addr: 20007e2c data: 00016813
addr: 20007e30 data: 00000000
addr: 20007e34 data: 20007e74
addr: 20007e38 data: 00000032
addr: 20007e3c data: 00016835
addr: 20007e40 data: 20007e74
addr: 20007e44 data: 0001686b
addr: 20007e48 data: 20007e74
addr: 20007e4c data: 00000754
addr: 20007e50 data: 00000007
addr: 20007e54 data: 00016913
addr: 20007e58 data: 20007e74
addr: 20007e5c data: 0001692d
addr: 20007e60 data: 20007e74
addr: 20007e64 data: 0000cb99
addr: 20007e68 data: 20000c20
addr: 20007e6c data: 00006bd9
addr: 20007e70 data: 00000032
addr: 20007e74 data: 200064e0
addr: 20007e78 data: 00000032
addr: 20007e7c data: 00000032
addr: 20007e80 data: 00000007
addr: 20007e84 data: 20000df8
addr: 20007e88 data: 00000006
addr: 20007e8c data: 00000007
addr: 20007e90 data: 0002040d
addr: 20007e94 data: 00000069
addr: 20007e98 data: 00000069
addr: 20007e9c data: 0000d229
addr: 20007ea0 data: 20000a14
addr: 20007ea4 data: 00004040
addr: 20007ea8 data: 0000a500
addr: 20007eac data: ffffffff
addr: 20007eb0 data: 20003064
addr: 20007eb4 data: 05000000
addr: 20007eb8 data: 00022000
addr: 20007ebc data: 000058b7
addr: 20007ec0 data: 20000038
addr: 20007ec4 data: 00000000
addr: 20007ec8 data: 00004040
addr: 20007ecc data: 0000a500
addr: 20007ed0 data: ffffffff
addr: 20007ed4 data: 000173a5
addr: 20007ed8 data: 000219bd
addr: 20007edc data: 40046f00
addr: 20007ee0 data: 00000000
addr: 20007ee4 data: 000173e3
addr: 20007ee8 data: 000219bd
addr: 20007eec data: 0000f61b
addr: 20007ef0 data: 000219bd
addr: 20007ef4 data: 0001453b
addr: 20007ef8 data: 00014531
addr: 20007efc data: 00002599
Bus fault is caused by precise data access violation
The bus fault occurred address is 4c434c53
Show more call stack info by run: addr2line -e "/tmp/arduino-build-660102A39EA9D455BDEF1157CDF2FEAE/BareMinimum-162F852326A2ED332F79B916C1021DA6.ino".elf -a -f 00016812 00016834 0001686a 0001686a 000167ea 000087b8 000167ea 00008dfe 0001686a 000167ea 00008f28 0001e50e 0001e50e 0001e50e 0001c122 0001e50e
SO the problem is definitely in the Arduino cloud system. Pleas fix it.
I'm not sure how you get the conclusion that this crash is caused by a problem in Arduino Cloud. It is just as likely to be caused by a bug in the code you wrote.
Immediately jumping to conclusions that there is an external cause for whatever problem you encounter is going to hold you back in any technical endeavors. Embedded systems in general, and IoT devices in particular, are very complex. It is guaranteed that you are going to run into some challenging problems along the way. The key is developing strategies for overcoming those challenges. If your strategy is immediately jumping to: "it must be someone else's fault, there is nothing I can do to solve it", then you are going to get stuck at every obstacle. It might be that some of those problems truly are caused by problems you don't have any way to fix in systems not accessible to you, but many times it will be a problem in the code that is sitting on your hard drive or the circuit sitting on your desk.
Please post your full sketch.
I'll provide instructions you can follow to do that:
- Click the following link to open the list of your Arduino Cloud Things in the web browser:
https://app.arduino.cc/things - Click on the Thing you are referring to in your post.
The Thing's "Setup" page will open. - Click the "Sketch" tab at the top of the page.
The Thing's "Sketch" page will open. - Click the "Auto indent" button on the toolbar:
ⓘ This is done to make the code easier for us to read. - Click on the editor panel of the window.
- Press the Ctrl+A keyboard shortcut (Command+A for macOS users).
This will select all the sketch code. - Press the Ctrl+C keyboard shortcut (Command+C for macOS users).
This will copy the selected code to the clipboard. - In a forum reply here, click on the reply field.
- Click the
<CODE/>icon on the post composer toolbar.
This will add the forum's code block markup (```) to your reply to make sure the error messages are correctly formatted.

- Press the Ctrl+V keyboard shortcut (Command+V for macOS users).
This will paste the compilation output into the code block. - Move the cursor outside of the code block markup before you add any additional text to your reply.
- Click the "Reply" button to post the output.
If your code uses a library that you imported to your Arduino Cloud account (as opposed to the standard libraries that are pre-installed), please post a link to where you downloaded that imported library from.
This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.
