Thingspeak - no reading data error code 0
Mostra commenti meno recenti
Hi,
I've just tried to upload the example sketch ReadField with an Arduino R4, updating the library with WifiS3.h rather than Wifi.h. The network connection is OK.
Unfortunately, I get an error code 0 in the Serial Monitor :
"Problem reading channel. HTTP error code 0"
I d'ont konw what is wrong here and how to fix it. I've read it could be result to the update rate, but the delay of the example seemes to be sufficient (15s).
5 Commenti
Vinod
il 10 Set 2024
Have you tried starting from one of the examples in the GitRepo here? I'd recommend starting from those examples to build a working project.
Christopher Stapels
il 11 Set 2024
Modificato: Christopher Stapels
il 11 Set 2024
Can you also try using the your web browser to update your channel? The syntax is provided in the api keys tab of your channel view.
Armand
il 11 Set 2024
Christopher Stapels
il 11 Set 2024
Im sorry, I misread your post, I thought you were writing, not reading. In that case it definitely has nothing to do with the update rate. I would consider trying a different network. Also try using the read command in your browser (also on the api keys tab of your channel;)
Armand
il 24 Set 2024
Risposte (1)
Vinod
il 24 Set 2024
1 voto
3 Commenti
O'car
il 13 Dic 2024
for the people that show up here. I am experiencing the same issue as @Armand but for posting data to a channel instead of reading, yet, data is posted successfully all the time!
The issue is the response code being 0 which I agree with @Vinod that the issue here MAY BE the WifiS3.h library rather than a bug or a problem on thingspeak. I have to yet study the differences between WifiS3 to Wifi but for now I am accepting response code 0 as success as I see the data being posted on the channel.
The issue lies deep in the implementation of the Arduino R4's WiFiS3 library, which is used to create the client that is passed into the ThingSpeak library. See the issue I have reported to the maintainers of the repo.
Christopher Stapels
il 30 Dic 2024
Hope they get to that soon. Thanks for digging into the issue @Vinod
Community
Più risposte nel ThingSpeak Community
Categorie
Scopri di più su ThingSpeak in Centro assistenza e File Exchange
Prodotti
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!