ThingSpeak http error code 0 but data is inserted

조회 수: 14 (최근 30일)
Azad Sheikh
Azad Sheikh 2019년 10월 6일
댓글: rosyid 2022년 10월 20일
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
rosyid
rosyid 2022년 10월 20일
Problem reading channel. HTTP error code 0
What can I do to fix this error

댓글을 달려면 로그인하십시오.

채택된 답변

Vinod
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
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.
Azad Sheikh
Azad Sheikh 2019년 10월 12일
편집: Azad Sheikh 2019년 10월 12일
Hi Vinod
thank you for the answer, appreciate it. Apologies for late reply from my side. issue was indeed because of more frequent data update, I changed it to 15+ secs and it worked. (it was working earlier also but now no error code)
Kind Regards

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

커뮤니티

더 많은 답변 보기:  ThingSpeak 커뮤니티

카테고리

Help CenterFile Exchange에서 REST API에 대해 자세히 알아보기

제품


릴리스

R2019b

Community Treasure Hunt

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

Start Hunting!

Translated by