Publish with Quality of Service (QoS) 0 to MQTT bridge in Google Cloud Platform (GCP)

When devices publish to MQTT bridge in GCP, they can set the Quality of Service to 0 or 1.  When QoS is set to 0, the message will be delivered at most once.

IoT Cloud Tester  application provides an easy interface to set the QoS for the MQTT connection.

To set Quality of Service (QoS) to 0 for MQTT connection,

  • Add a device to the device registry in GCP
  • In the 'Publish' tab, select the value for the QoS field from the dropdown.
  • Click on the 'Publish' button to start publishing data for the selected device(s).

When QoS is set to 0, the message will not be acknowledged by PUBACK message after it has been successfully sent to Google Cloud. It may be dropped if the service is unavailable temporarily.

The Pub/Sub monitor will show the data published by the devices.