Thingspeak http error 400 for fpga

조회 수: 2 (최근 30일)
Vertical Farm
Vertical Farm 2020년 11월 25일
답변: Vertical Farm 2020년 11월 27일
As the title says Im trying to upload data with HTTP GET method and I followed the api documentation properly
This is a snipper of my code where the data is being sent as well as the output I receive
It works when in browser but not when I do it through my board

채택된 답변

Vertical Farm
Vertical Farm 2020년 11월 27일
Alright guys I managed to fix it, I added \r\n which is carriage return and new line to the end of my command
Then I changed the order of the code and it worked, I hope this answer as well as Mr Christopher's one will suffice as solution

추가 답변 (1개)

Christopher Stapels
Christopher Stapels 2020년 11월 25일
Can you modify the length to include the line endings? This has been a problem for me in the past when using AT commands.
If at all possible, we reccomend using the ThingSpeak library. There are some AT command examples in there.
  댓글 수: 2
Vertical Farm
Vertical Farm 2020년 11월 26일
편집: Vertical Farm 2020년 11월 26일
line endings as in the carriage return and new line?
As for the thingspeak library you have linked me, I checked out the ESP8266 and ESP32 examples, and all of them uses Thingspeak.WriteField to publish the data I dont see the AT commands
Vertical Farm
Vertical Farm 2020년 11월 26일
Edit: I seem to have found the problem, when my ESP32_SendBuffer sends the u8 command[] variable its adding random characters into the mix, I may have found the problem but I have no clue as to why it is even happening

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

커뮤니티

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

카테고리

Help CenterFile Exchange에서 Read Data from Channel에 대해 자세히 알아보기

제품

Community Treasure Hunt

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

Start Hunting!

Translated by