{"id":179591,"date":"2021-05-05T00:01:35","date_gmt":"2021-05-05T07:01:35","guid":{"rendered":"https:\/\/m2msupport.net\/m2msupport\/?page_id=179591"},"modified":"2021-05-05T00:02:07","modified_gmt":"2021-05-05T07:02:07","slug":"bind-device-to-a-gateway-in-google-cloud-platform-gcp-using-iot-cloud-tester","status":"publish","type":"page","link":"https:\/\/m2msupport.net\/m2msupport\/bind-device-to-a-gateway-in-google-cloud-platform-gcp-using-iot-cloud-tester\/","title":{"rendered":"Bind device to a gateway in Google Cloud Platform (GCP) using IoT Cloud Tester"},"content":{"rendered":"<p>Gateway devices connect its client devices to the Google Cloud Platform. Devices should be bound to gateway before the gateway can communicate with GCP on behalf of a device.<\/p>\n<p><a href=\"https:\/\/m2msupport.net\/m2msupport\/download-iot-cloud-tester\/\">IoT Cloud Tester<\/a>\u00a0 application provides an easy interface to bind device to a gateway in Google Cloud platform.<\/p>\n<h1>To bind device to a gateway in Google Cloud project,<\/h1>\n<ul>\n<li>Select the project.<\/li>\n<li>In the &#8216;Gateways&#8217; tab, select a gateway and press &#8216;Bind\/Unbind Devices&#8217; button.<\/li>\n<li>Select the device to bind.<\/li>\n<\/ul>\n<p><a href=\"https:\/\/m2msupport.net\/m2msupport\/wp-content\/uploads\/2021\/05\/bind_device.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-179594\" src=\"https:\/\/m2msupport.net\/m2msupport\/wp-content\/uploads\/2021\/05\/bind_device.png\" alt=\"\" width=\"849\" height=\"750\" srcset=\"https:\/\/m2msupport.net\/m2msupport\/wp-content\/uploads\/2021\/05\/bind_device.png 849w, https:\/\/m2msupport.net\/m2msupport\/wp-content\/uploads\/2021\/05\/bind_device-300x265.png 300w, https:\/\/m2msupport.net\/m2msupport\/wp-content\/uploads\/2021\/05\/bind_device-768x678.png 768w, https:\/\/m2msupport.net\/m2msupport\/wp-content\/uploads\/2021\/05\/bind_device-600x530.png 600w\" sizes=\"auto, (max-width: 849px) 100vw, 849px\" \/><\/a><\/p>\n<p>To bind device to a gateway in GCP, a post request is made to the below URL. IoT Cloud Tester tool generates the device key for the Gateway and includes it as a post parameter.<\/p>\n<p><strong>Request sent to GCP to bind device to gateway.<\/strong><\/p>\n<p>POST:https:\/\/cloudiot.googleapis.com\/v1\/projects\/iot-cloud-tutorial\/locations\/asia-east1\/registries\/reg_193129:bindDeviceToGateway<\/p>\n<p>{<\/p>\n<p>&#8220;deviceId&#8221; : &#8220;dev_952945&#8221;,<\/p>\n<p>&#8220;gatewayId&#8221; : &#8220;gw_32110&#8221;<\/p>\n<p>}<\/p>\n<p><code><br \/>\n<\/code><br \/>\nThe devices bound to gateway can be viewed in the Google Cloud console.<\/p>\n<p><a href=\"https:\/\/console.cloud.google.com\/iot\/locations\/asia-east1\/registries\/reg_193129\/gateways\/details\/gw_32110\/devices?project=iot-cloud-tutorial\">https:\/\/console.cloud.google.com\/iot\/locations\/asia-east1\/registries\/reg_193129\/gateways?project=iot-cloud-tutorial<\/a><\/p>\n<p><a href=\"https:\/\/m2msupport.net\/m2msupport\/wp-content\/uploads\/2021\/05\/gcp_bound_devices.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-179595\" src=\"https:\/\/m2msupport.net\/m2msupport\/wp-content\/uploads\/2021\/05\/gcp_bound_devices.png\" alt=\"\" width=\"1564\" height=\"839\" srcset=\"https:\/\/m2msupport.net\/m2msupport\/wp-content\/uploads\/2021\/05\/gcp_bound_devices.png 1564w, https:\/\/m2msupport.net\/m2msupport\/wp-content\/uploads\/2021\/05\/gcp_bound_devices-300x161.png 300w, https:\/\/m2msupport.net\/m2msupport\/wp-content\/uploads\/2021\/05\/gcp_bound_devices-768x412.png 768w, https:\/\/m2msupport.net\/m2msupport\/wp-content\/uploads\/2021\/05\/gcp_bound_devices-1024x549.png 1024w, https:\/\/m2msupport.net\/m2msupport\/wp-content\/uploads\/2021\/05\/gcp_bound_devices-600x322.png 600w\" sizes=\"auto, (max-width: 1564px) 100vw, 1564px\" \/><\/a><\/p>\n<div class=\"video-responsive\"><iframe loading=\"lazy\" id=\"youTubePlayer\" src=\"https:\/\/www.youtube.com\/embed\/gWLOsmZOeEo?hd=1\" width=\"750\" height=\"421\" frameborder=\"0\" allowfullscreen=\"allowfullscreen\"><\/iframe><\/div>\n","protected":false},"excerpt":{"rendered":"<p>Gateway devices connect its client devices to the Google Cloud Platform. Devices should be bound to gateway before the gateway can communicate with GCP on behalf of a device. IoT Cloud Tester\u00a0 application provides an easy interface to bind device &hellip; <a href=\"https:\/\/m2msupport.net\/m2msupport\/bind-device-to-a-gateway-in-google-cloud-platform-gcp-using-iot-cloud-tester\/\">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-179591","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/m2msupport.net\/m2msupport\/wp-json\/wp\/v2\/pages\/179591","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=179591"}],"version-history":[{"count":2,"href":"https:\/\/m2msupport.net\/m2msupport\/wp-json\/wp\/v2\/pages\/179591\/revisions"}],"predecessor-version":[{"id":179597,"href":"https:\/\/m2msupport.net\/m2msupport\/wp-json\/wp\/v2\/pages\/179591\/revisions\/179597"}],"wp:attachment":[{"href":"https:\/\/m2msupport.net\/m2msupport\/wp-json\/wp\/v2\/media?parent=179591"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}