ThingSpeak http error code 0 but data is inserted
16 ビュー (過去 30 日間)
古いコメントを表示
Just tried testing esp32 with sim800L on ThingSpeak free channel. Not sure why getting the "http error code 0" because the channel values are getting inserted with new values. It is functioning, but, would be helpful if someone could point out why the http error code 0 is returned ?
int i = ThingSpeak.writeField(myBlowerChannel, 1, temp, myBlowerKey);
value of 'i' is coming '0' but the temp data is getting inserted
1 件のコメント
採用された回答
Vinod
2019 年 10 月 8 日
The most likely situation is that your device is doing multiple updates within the allowed update rate (every 15s as a free user, and every 1s with a paid license). The vast majority of the updates are getting a '0' response code, and that is what you are seeing.
Can you share your arduino sketch so we can suggest the modifications to be made?
2 件のコメント
Vinod
2019 年 10 月 9 日
Also, if you have not already seen it, I would reccomend using the library to send data to ThingSpeak. See:
There are examples there that can help you get started with programming the ESP32 correctly.
その他の回答 (0 件)
コミュニティ
その他の回答 ThingSpeak コミュニティ
参考
カテゴリ
Help Center および File Exchange で REST API についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!