Thingspeak http error 400 for fpga

2 views (last 30 days)
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

Accepted Answer

Vertical Farm
Vertical Farm on 27 Nov 2020
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

More Answers (1)

Christopher Stapels
Christopher Stapels on 25 Nov 2020
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.
Vertical Farm
Vertical Farm on 26 Nov 2020
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

Sign in to comment.


More Answers in the  ThingSpeak Community

Community Treasure Hunt

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

Start Hunting!