{"id":189225,"date":"2021-07-03T07:53:46","date_gmt":"2021-07-03T14:53:46","guid":{"rendered":"https:\/\/m2msupport.net\/m2msupport\/?page_id=189225"},"modified":"2021-07-03T07:57:40","modified_gmt":"2021-07-03T14:57:40","slug":"publish-with-quality-of-service-qos-2-to-mqtt-bridge-is-not-supported-in-google-cloud-platform-gcp","status":"publish","type":"page","link":"https:\/\/m2msupport.net\/m2msupport\/publish-with-quality-of-service-qos-2-to-mqtt-bridge-is-not-supported-in-google-cloud-platform-gcp\/","title":{"rendered":"Publish with Quality of Service (QoS) 2 to MQTT bridge is not supported in Google Cloud Platform (GCP)"},"content":{"rendered":"<p>When devices publish to MQTT bridge in GCP, they can set the Quality of Service to 0 or 1.<\/p>\n<ul>\n<li>When QoS is set to 0, the message will be delivered at most once.<\/li>\n<li>When QoS is set to 1, the message will be delivered at least once.<\/li>\n<li>When QoS is set to 2, the message will be delivered exactly once<\/li>\n<\/ul>\n<p>However QoS 2 is not supported in the Google Cloud platform.<\/p>\n<p><a href=\"https:\/\/m2msupport.net\/m2msupport\/download-iot-cloud-tester\/\">IoT Cloud Tester<\/a>\u00a0 application provides an easy interface to set the QoS for the MQTT connection.<\/p>\n<ul>\n<li><a href=\"https:\/\/m2msupport.net\/m2msupport\/publish-with-quality-of-service-qos-1-to-mqtt-bridge-in-google-cloud-platform-gcp\/\">Publish with QoS 1<\/a><\/li>\n<li><a href=\"https:\/\/m2msupport.net\/m2msupport\/publish-with-quality-of-service-qos-0-to-mqtt-bridge-in-google-cloud-platform-gcp\/\">Publish with QoS 0<\/a><\/li>\n<\/ul>\n<h1>To set Quality of Service (QoS) to 2 for MQTT connection and observe the failure,<\/h1>\n<ul>\n<li>In the &#8216;Publish&#8217; tab, select the value for the QoS field from the dropdown.<\/li>\n<li>Click on the &#8216;Publish&#8217; button to start publishing data for the selected device(s).<\/li>\n<\/ul>\n<p>When QoS is set to 2, the publish message will fail.<\/p>\n<ul>\n<li><\/li>\n<\/ul>\n<p><a href=\"https:\/\/m2msupport.net\/m2msupport\/wp-content\/uploads\/2021\/07\/set_qos_2.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-189226\" src=\"https:\/\/m2msupport.net\/m2msupport\/wp-content\/uploads\/2021\/07\/set_qos_2.png\" alt=\"\" width=\"864\" height=\"975\" srcset=\"https:\/\/m2msupport.net\/m2msupport\/wp-content\/uploads\/2021\/07\/set_qos_2.png 864w, https:\/\/m2msupport.net\/m2msupport\/wp-content\/uploads\/2021\/07\/set_qos_2-266x300.png 266w, https:\/\/m2msupport.net\/m2msupport\/wp-content\/uploads\/2021\/07\/set_qos_2-768x867.png 768w, https:\/\/m2msupport.net\/m2msupport\/wp-content\/uploads\/2021\/07\/set_qos_2-600x677.png 600w\" sizes=\"auto, (max-width: 864px) 100vw, 864px\" \/><\/a><\/p>\n<div class=\"video-responsive\"><iframe loading=\"lazy\" id=\"youTubePlayer\" src=\"https:\/\/www.youtube.com\/embed\/LFWx64lcOR4?hd=1\" width=\"750\" height=\"421\" frameborder=\"0\" allowfullscreen=\"allowfullscreen\"><\/iframe><\/div>\n","protected":false},"excerpt":{"rendered":"<p>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. When QoS is set to 1, the &hellip; <a href=\"https:\/\/m2msupport.net\/m2msupport\/publish-with-quality-of-service-qos-2-to-mqtt-bridge-is-not-supported-in-google-cloud-platform-gcp\/\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"iot_tutorial_template.php","meta":{"footnotes":""},"class_list":["post-189225","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/m2msupport.net\/m2msupport\/wp-json\/wp\/v2\/pages\/189225","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/m2msupport.net\/m2msupport\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/m2msupport.net\/m2msupport\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/m2msupport.net\/m2msupport\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/m2msupport.net\/m2msupport\/wp-json\/wp\/v2\/comments?post=189225"}],"version-history":[{"count":3,"href":"https:\/\/m2msupport.net\/m2msupport\/wp-json\/wp\/v2\/pages\/189225\/revisions"}],"predecessor-version":[{"id":189229,"href":"https:\/\/m2msupport.net\/m2msupport\/wp-json\/wp\/v2\/pages\/189225\/revisions\/189229"}],"wp:attachment":[{"href":"https:\/\/m2msupport.net\/m2msupport\/wp-json\/wp\/v2\/media?parent=189225"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}