Unreliable update ThingSpeak channel from Arduino MCU board
Peter Hsi
on 28 Jul 2024
Latest activity Reply by Christopher Stapels
on 29 Jul 2024
I use "x = ThingSpeak.writeFields(myChannelNumber1, myWriteAPIKey1);" in my code to update the ThingSpeak channel. 4 fields are associated with this channel. This statement is executed about once every 5 minutes.
Roughly 60% of the time, I got an error message "HTTP error code -301". The other 40% of time the channel update is successful. What does the "HTTP error code -301" mean? Any suggestion on how to improve the success rate of the channel update
3 Comments
Time Descending-301 is network connectivity. It probably means the device is not getting a strong enough signal. You can try moving closer to the access point, try a different network, or consider adding an antenna. When you are sucessfully connected, it is uaully possible to measure RSSI, and you could write it to your channel and see.below -85 starts getting risky.

Sign in to participate