This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

Sending commands to Thingy91 by subscribing to mqtt server

Hi Dev team,

I am working on a Thingy91 device, and I am sending data out through MQTT.

I need a functionality to send some commands to do assigned tasks from the MQTT server back to the LTE device.

Are there any nRF or Zephyr API that supports this functionality to send commands from any server to the LTE Device? 

If not, I was thinking to use the MQTT subscribe to receive commands and perform actions based on that.

What would be a feasible approach to implement the command functionality ?

Regards,

Adeel.

Parents
  • Hi,

     

    Are there any nRF or Zephyr API that supports this functionality to send commands from any server to the LTE Device? 

     There are many libraries for sending data between a server and the nRF9160. What you do with that data is up to you.

     

    What would be a feasible approach to implement the command functionality ?

     If you already have an MQTT connection, that sounds like the easiest way.

    MQTT let you send arbitrary data. What you do with that data is up to you. You could either have a way in the message to indicate that it is a command, or you could send the commands on a specific topic.

    Best regards,

    Didrik

Reply
  • Hi,

     

    Are there any nRF or Zephyr API that supports this functionality to send commands from any server to the LTE Device? 

     There are many libraries for sending data between a server and the nRF9160. What you do with that data is up to you.

     

    What would be a feasible approach to implement the command functionality ?

     If you already have an MQTT connection, that sounds like the easiest way.

    MQTT let you send arbitrary data. What you do with that data is up to you. You could either have a way in the message to indicate that it is a command, or you could send the commands on a specific topic.

    Best regards,

    Didrik

Children
No Data
Related