Haydar Jawad in Discussions
Letzte Aktivitätam 2 Nov. 2023

Hi, i wonder if any one experiencing the same, but in my thing sepak profiel i can only see : 1- User API Key 2- Alert API Key but no MQTT API key? not sure why Thank you MQTT API is not in my profile We are so glad you asked! ThingSpeak has a new MQTT interface that does not require an API key. Check out the <https://blogs.mathworks.com/iot/2021/07/21/thingspeak-mqtt-update-access-control-and-iot-device-management/ recent blog post> and the <https://www.mathworks.com/help/thingspeak/mqtt-api.html doc> . (edit: links added) Please let us know what you think if you get a chance. Thank you Chris, I actually found out after searching the topics. It works great i am testing now with multiple MCUs! All good so far. Still please post the links just in case i see something useful well. Thank you again Hello there Mr. @Christopher Stapels I have some struggles with Thingspeak new MQTT interface. I want to connect dragino LG-02 LoRa Gateway to Thingspeak channel. When thingspeak used to have MQTT API key it will be the Password of MQTT client and it's fairly easy to connect it to Thingspeak. And now with the new interface I am unable to connect gateway to Thingspeak channel. I have filled User ID with Thingspeak MQTT username, Client ID with Thingspeak MQTT Client ID, and password with Thingspeak MQTT password, but it still don't work. Do you have any idea with this case? Thank you in advance ! Have you created a device in your mqtt devices? We suggest using the desktop client to debug, see the documentation for how to test with mqttx. It has been solved sir, I notice that the MQTT topic template changed a bit since last time I used the gateway May I know how you solved? I have the same problem. Thank you. They solved the problem by using the correct syntax for the MQTT API. If you look in the documentation, you can se the proper syntax. Hello , how you resolve the problem? HI. Can you tell me how you solved it? Thank you. In the original post, the user is using the old syntax for the MQTT service that was depricated quite some time ago. The new syntax is in the links I provided above. If you are having an issue that you cannot fix, please feel free to start a new thread with the question on MATLAB answers, with the tag ThingSepak. Please!!!! @Christopher Stapels please sir help me finding the mqtt api key ThingSpeak has an MQTT interface that does not require an API key. Check out the blog post and the doc. Please let us know what you think if you get a chance. mqtt api key
Gcobani Mkontwana in MATLAB Answers
Letzte Aktivitätam 4 Sep. 2023

Hi Team I am trying to read API key to my channel, using jquery to get JSON response to my channel. Here is my jquery logic, i am unable to get a response to my channel i have created and i want to read one field from my channel (field8) only. <script src="https://code.jquery.com/jquery-3.3.1.js"integrity="sha256-2Kok7MbOyxpgUVvAk/HJ2jigOSYS2auK4Pfzbm7uH60="crossorigin="anonymous"></script> <script type="text/javascript"> function loadData(){ var id; //get the data from thingspeak. $.getJSON('https://api.thingspeak.com/channels/899906/fields/8.json?api_key=F35GLOFJ8L99D0OM&results=2',function(data) { id = data.field8; if(id){ displayData(id); } }); } </script>
Labo SMRA in MATLAB Answers
Letzte Aktivitätam 29 Jan. 2021

Hello, I can't post data on thingspeak with my yoctopuce probes anymore. The probes post the data via a GSM 3 router that doesn't assume the https protocol. I was able to transfer data very well before, are the Thingspeak API keys configured in https? Thank you in advance

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.