downlink data from thingspeak to gateway to arduino

Jun Jie Oh el 31 de Mzo. de 2022
Actividad más reciente Respuesta de Christopher Stapels a las el 4 de Abr. de 2022

Currently i am using lora from my end node to my dragino gateway and from my gateway, i push the sensor data up to thingspeak. i want to check that when my temperature graph hits above 30 it will send down a 1 or a command to my gateway and my gateway will transmit it to my end node to take action. i research and saw that react is one of the solution for on top but i do not know which action and how to use that specific action for this scenario.

Christopher Stapels
Christopher Stapels el 31 de Mzo. de 2022

Is your gateway capable of downlink communication? You can use built in MATLAB with webread() or webwrite() to make HTTP calls. You can trigger a MATLAB analysis with React app. If your dragino has a webserver, it can forward the packets or you may be able to use a webhook.

Jun Jie Oh
Jun Jie Oh el 31 de Mzo. de 2022

hi, yes my gateway is capable of downlink. does the MATLAB has a template for the read of the temperature? I am new to MATLAB and is my first time setting them up

Christopher Stapels
Christopher Stapels el 31 de Mzo. de 2022 (Editada a las el 31 de Mzo. de 2022)

If it is public, can you share your channel ID? Generally reading data into MATLAB is easily accomplished with the thingSpeakRead function. There are templates for various options. If you select Apps > MATLAB analysis and then click the new button, you will be offered some templates. The documentation is also quite good. I especially recommend the getting started tutorial and this new movie series: Iot from data to action .

Jun Jie Oh
Jun Jie Oh el 31 de Mzo. de 2022 (Editada a las el 31 de Mzo. de 2022)

can i check if i only need to pass a certain string or command after temperature graph hits the threshold to my gateway do i still use http calls for the react? or do i jus use the matlab analysis to check for the value ?

Jun Jie Oh
Jun Jie Oh el 31 de Mzo. de 2022

sure. my channel ID is 1676420. thanks! i will look into the documentation and try out some of the templates that are being offered

Christopher Stapels
Christopher Stapels el 4 de Abr. de 2022

1676420 seems to be a private channel.

Jun Jie Oh
1
Publicación
3
Responder

Etiquetas