{"id":183347,"date":"2021-06-01T23:29:32","date_gmt":"2021-06-02T06:29:32","guid":{"rendered":"https:\/\/m2msupport.net\/m2msupport\/?page_id=183347"},"modified":"2021-06-01T23:46:49","modified_gmt":"2021-06-02T06:46:49","slug":"subscriber-listen-to-subscription-topic-messages-in-google-cloud-platform-gcp","status":"publish","type":"page","link":"https:\/\/m2msupport.net\/m2msupport\/subscriber-listen-to-subscription-topic-messages-in-google-cloud-platform-gcp\/","title":{"rendered":"Subscriber &#8211; Listen to subscription topic messages in  Google Cloud Platform (GCP)"},"content":{"rendered":"<p>Subscribers get messages published to a topic by subscribing to topic subscriptions.<\/p>\n<p><a href=\"https:\/\/m2msupport.net\/m2msupport\/download-iot-cloud-tester\/\">IoT Cloud Tester<\/a>&nbsp; application provides an easy interface to enable subscriber to listen to messages published for the subscribed topics in Google Cloud Platform.<\/p>\n<h1>To listen to subscribed topics,<\/h1>\n<ul>\n<li>In the &#8216;Subscribers&#8217; tab, get the list of subscribers.<\/li>\n<li>Select a subscriber and click on &#8216;Start Listening&#8217;<\/li>\n<li>In this below example,&nbsp; listening is started &#8216;subscriber_130661&#8217; o receive the messages published for the subscription ID &#8216;subscription_620657&#8217; for the topic device_enviornment.<\/li>\n<\/ul>\n<p><a href=\"https:\/\/m2msupport.net\/m2msupport\/wp-content\/uploads\/2021\/06\/start_listening.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-183726\" src=\"https:\/\/m2msupport.net\/m2msupport\/wp-content\/uploads\/2021\/06\/start_listening.png\" alt=\"\" width=\"848\" height=\"730\" srcset=\"https:\/\/m2msupport.net\/m2msupport\/wp-content\/uploads\/2021\/06\/start_listening.png 848w, https:\/\/m2msupport.net\/m2msupport\/wp-content\/uploads\/2021\/06\/start_listening-300x258.png 300w, https:\/\/m2msupport.net\/m2msupport\/wp-content\/uploads\/2021\/06\/start_listening-768x661.png 768w, https:\/\/m2msupport.net\/m2msupport\/wp-content\/uploads\/2021\/06\/start_listening-600x517.png 600w\" sizes=\"auto, (max-width: 848px) 100vw, 848px\" \/><\/a><\/p>\n<p>In the &#8216;Publish&#8217; tab, device &#8216;dev_415799&#8217; is enabled to publish messages to the topic &#8216;device_enviornment&#8217;. IoT Cloud Tester application will generate data based on the data model &#8216;device_data&#8217;.<\/p>\n<p><a href=\"https:\/\/m2msupport.net\/m2msupport\/wp-content\/uploads\/2021\/06\/publish.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-183736\" src=\"https:\/\/m2msupport.net\/m2msupport\/wp-content\/uploads\/2021\/06\/publish.png\" alt=\"\" width=\"853\" height=\"735\" srcset=\"https:\/\/m2msupport.net\/m2msupport\/wp-content\/uploads\/2021\/06\/publish.png 853w, https:\/\/m2msupport.net\/m2msupport\/wp-content\/uploads\/2021\/06\/publish-300x258.png 300w, https:\/\/m2msupport.net\/m2msupport\/wp-content\/uploads\/2021\/06\/publish-768x662.png 768w, https:\/\/m2msupport.net\/m2msupport\/wp-content\/uploads\/2021\/06\/publish-600x517.png 600w\" sizes=\"auto, (max-width: 853px) 100vw, 853px\" \/><\/a><\/p>\n<p>Pub\/Sub monitor window will display both the message published by the devices and well as messages received by the subscribers. Below example shows the messages published by &#8216;device_415799&#8217; to &#8216;device_enviornment&#8217; topic every 10 seconds. The temperature and humidity data is generated by the IoT Cloud Tester app. Since the &#8216;subscriber_130561&#8217; is subscribed to messages from &#8216;device_enviornment&#8217; topic, it receives the messages published by the &#8216;device_130561&#8217;<\/p>\n<p><a href=\"https:\/\/m2msupport.net\/m2msupport\/wp-content\/uploads\/2021\/06\/pub_sub_monitor2.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-183737\" src=\"https:\/\/m2msupport.net\/m2msupport\/wp-content\/uploads\/2021\/06\/pub_sub_monitor2.png\" alt=\"\" width=\"833\" height=\"655\" srcset=\"https:\/\/m2msupport.net\/m2msupport\/wp-content\/uploads\/2021\/06\/pub_sub_monitor2.png 833w, https:\/\/m2msupport.net\/m2msupport\/wp-content\/uploads\/2021\/06\/pub_sub_monitor2-300x236.png 300w, https:\/\/m2msupport.net\/m2msupport\/wp-content\/uploads\/2021\/06\/pub_sub_monitor2-768x604.png 768w, https:\/\/m2msupport.net\/m2msupport\/wp-content\/uploads\/2021\/06\/pub_sub_monitor2-600x472.png 600w\" sizes=\"auto, (max-width: 833px) 100vw, 833px\" \/><\/a><\/p>\n<div><\/div>\n<div><\/div>\n<div><\/div>\n<div class=\"video-responsive\"><iframe loading=\"lazy\" id=\"youTubePlayer\" src=\"https:\/\/www.youtube.com\/embed\/gz_ch8qGe48?hd=1\" width=\"750\" height=\"421\" frameborder=\"0\" allowfullscreen=\"allowfullscreen\"><\/iframe><\/div>\n","protected":false},"excerpt":{"rendered":"<p>Subscribers get messages published to a topic by subscribing to topic subscriptions. IoT Cloud Tester&nbsp; application provides an easy interface to enable subscriber to listen to messages published for the subscribed topics in Google Cloud Platform. To listen to subscribed &hellip; <a href=\"https:\/\/m2msupport.net\/m2msupport\/subscriber-listen-to-subscription-topic-messages-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-183347","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/m2msupport.net\/m2msupport\/wp-json\/wp\/v2\/pages\/183347","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=183347"}],"version-history":[{"count":2,"href":"https:\/\/m2msupport.net\/m2msupport\/wp-json\/wp\/v2\/pages\/183347\/revisions"}],"predecessor-version":[{"id":183739,"href":"https:\/\/m2msupport.net\/m2msupport\/wp-json\/wp\/v2\/pages\/183347\/revisions\/183739"}],"wp:attachment":[{"href":"https:\/\/m2msupport.net\/m2msupport\/wp-json\/wp\/v2\/media?parent=183347"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}