Nathan Petrie in MATLAB Answers
Letzte Aktivitätam 17 Apr. 2020

I have my ESP8266 connected to my Arduino Uno. (Through serial when not running code and through SoftwareSerial when running code) I have successfully updated a channel in ThingSpeak with both Arduino code and through the serial monitor. Now I want to use TalkBack. I started testing it using the serial monitor AT commands. However, it keeps giving me the following error (in json, in my code below, I get the text response because I don't specify a format): {"status":"401","error":{"error_code":"error_auth_required","message":"Authorization Required","details":"Please provide proper authentication details."}} I am sending the following commands: 1-------> AT+CIPSTART="TCP","api.thingspeak.com",80 Response: CONNECT OK 2-------> AT+CIPSEND=70 Response: OK 3-------> GET /talkbacks/<my_talkback_id>/commands/execute?api_key=<my_talkback_api_key> \r\n Response: Recv 70 bytes SEND OK +IPD,19:error_auth_requiredCLOSED That's when I get the above error (that's what the error looks like in json format). And yes, I am using the API key from the TalkBack page. In fact, I usually copy the GET line from my TalkBack's webpage. I use a character count website to get the size (68) then add two (to make 70) because of the NL and CR the serial monitor adds. This is how I did it for ThingSpeak and it works fine. Any help would be appreciated!

Info zu ThingSpeak

The community for students, researchers, and engineers looking to use MATLAB, Simulink, and ThingSpeak for Internet of Things applications. You can find the latest ThingSpeak news, tutorials to jump-start your next IoT project, and a forum to engage in a discussion on your latest cloud-based project. You can see answers to problems other users have solved and share how you solved a problem.