Thingspeak - no reading data error code 0

3 ビュー (過去 30 日間)
Armand
Armand 2024 年 9 月 10 日
回答済み: Vinod 2024 年 9 月 24 日
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 件のコメント
Christopher Stapels
Christopher Stapels 2024 年 9 月 11 日
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
Armand 2024 年 9 月 24 日
Sorry for the delay @Christopher Stapels. It works well in the browser so it seems not to be a problem of network.
Moreover, by adapting the WiFiWebClient sketch from Arduino with a GET method on the chanel URL, I've succeed to get the related JSON. But I don't understant why the Thingspeak library doesn't work in my case and how to fix it.

サインインしてコメントする。

回答 (1 件)

Vinod
Vinod 2024 年 9 月 24 日
I believe the key is here "...updating the library with WifiS3.h rather than Wifi.h." My guess is the WiFiS3 library is not exactly functionally equivalent to Wifi library in Arduino. I'd recommend comparing the source of WifiS3 to Wifi to find the difference.

コミュニティ

その他の回答  ThingSpeak コミュニティ

カテゴリ

Help Center および File ExchangeWrite Data to Channel についてさらに検索

製品

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by