1

We are currently trying to communicate with Edge devices using MQTT. We use the config topic for defining the algorithms to use, the version of software and so on.

We would like to use commands for sending "calculation results" back to the devices. We have to send it from the cloud towards the devices since multiple devices are working together on this.

This state is important for the device to visualise the correct state and therefor we would like to have QOS1 for these commands. According to the documentation this should be possible but I can't find out how to do this.

We are using the API's for managing these config and commands.

Pipo
  • 43
  • 1
  • 5
  • QOS is just one of the fields in an MQTT packet. What software are you using to Publish the "calculation results" from? ...there should be an option to set QOS. If you are using custom code, then the programming language MQTT module should have an option for setting QOS. – JD Allen Apr 27 '20 at 13:50
  • I'm using the SDK of gcp iot. Behind the scenes this is using HTTP to send a command via the API op IOT core. – Pipo Apr 28 '20 at 14:03
  • I would love to help if provide which language are you using. Every example uses eclipse paho client so library is similar in every language (Java, Go, Python...) – Dinko Pehar May 05 '20 at 20:30
  • I'm using Java for this with the [gcp IOT SDK](https://github.com/googleapis/java-iot). Behind the scenes it is not using Paho but direct HTTP API's. In the HTTP API's I have not found any way of passing the QOS level. – Pipo May 07 '20 at 06:36

0 Answers0