how to communcate from thinkspeak to arudino ide

Sreerag Haridas EM on 13 Mar 2021
Latest activity Reply by Christopher Stapels on 17 Mar 2021

Hi,

i have made a data logger with arduino and esp8266.the data being the temperature and humidity.

what i wanted to know is there some way i can set a threshold value and thingspeak reacts on it if data is not uploaded for 5 mins and the thinkspeak should through a message to arudio ide

can i use talkback for this?

Christopher Stapels
Christopher Stapels on 16 Mar 2021

I think what you want to do can be achieved, except for the part about communicating to the IDE. Talkback can provide a message to your device, the device will have to poll the talkback endpoint for the message sent back. You will then need to create code in MATLAB analysis on ThingSpeak that checks your channel and writes a talkback when there has been no data in the channel for more than 5 minutes. I recommend reading the channel data as a timetable, then you can check the value of the last timestamp and compare to datetime('now')

Sreerag Haridas EM
Sreerag Haridas EM on 16 Mar 2021

Is there any way to get the MATLAB code

Christopher Stapels
Christopher Stapels on 17 Mar 2021

There is a lot of code provided in the examples. Here is a page that describes a similar process. Monitor channel activity . Have a look at the TalkBack page , and the Act on data page , in the section on the TalkBack API.