<
5590
script type="application/json" data-target="react-app.embeddedData">{"payload":{"allShortcutsEnabled":false,"path":"iot/api-client","repo":{"id":402694380,"defaultBranch":"master","name":"java-docs-samples","ownerLogin":"chawon","currentUserCanPush":false,"isFork":true,"isEmpty":false,"createdAt":"2021-09-03T08:07:01.000Z","ownerAvatar":"https://avatars.githubusercontent.com/u/9413701?v=4","public":true,"private":false,"isOrgOwned":false},"currentUser":null,"refInfo":{"name":"cr-wait-sample","listCacheKey":"v0:1630659420.253118","canEdit":false,"refType":"branch","currentOid":"b36b13eef206057e836787554010085449f0aa70"},"tree":{"items":[{"name":"codelab","path":"iot/api-client/codelab","contentType":"directory"},{"name":"end-to-end-example","path":"iot/api-client/end-to-end-example","contentType":"directory"},{"name":"manager","path":"iot/api-client/manager","contentType":"directory"},{"name":"README.md","path":"iot/api-client/README.md","contentType":"file"},{"name":"generate_keys.sh","path":"iot/api-client/generate_keys.sh","contentType":"file"}],"templateDirectorySuggestionUrl":null,"readme":{"displayName":"README.md","richText":"\u003carticle class=\"markdown-body entry-content container-lg\" itemprop=\"text\"\u003e\u003cdiv class=\"markdown-heading\" dir=\"auto\"\u003e\u003ch1 tabindex=\"-1\" class=\"heading-element\" dir=\"auto\"\u003eCloud IoT Core Java Samples\u003c/h1\u003e\u003ca id=\"user-content-cloud-iot-core-java-samples\" class=\"anchor\" aria-label=\"Permalink: Cloud IoT Core Java Samples\" href=\"#cloud-iot-core-java-samples\"\u003e\u003csvg class=\"octicon octicon-link\" viewBox=\"0 0 16 16\" version=\"1.1\" width=\"16\" height=\"16\" aria-hidden=\"true\"\u003e\u003cpath d=\"m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z\"\u003e\u003c/path\u003e\u003c/svg\u003e\u003c/a\u003e\u003c/div\u003e\n\u003ca href=\"https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/GoogleCloudPlatform/java-docs-samples\u0026amp;page=editor\u0026amp;open_in_editor=iot/api-client/manager/README.md\" rel=\"nofollow\"\u003e\n\u003cimg alt=\"Open in Cloud Shell\" src=\"https://camo.githubusercontent.com/cf29981159f3fb8f7d5c5ce0a4a4ab3d2a8e500b782d2016717c3e4aa6124bc5/687474703a2f2f677374617469632e636f6d2f636c6f75647373682f696d616765732f6f70656e2d62746e2e706e67\" data-canonical-src=\"http://gstatic.com/cloudssh/images/open-btn.png\" style=\"max-width: 100%;\"\u003e\u003c/a\u003e\n\u003cp dir=\"auto\"\u003eThis folder contains Java samples that demonstrate an overview of the\nGoogle Cloud IoT Core platform.\u003c/p\u003e\n\u003cdiv class=\"markdown-heading\" dir=\"auto\"\u003e\u003ch2 tabindex=\"-1\" class=\"heading-element\" dir=\"auto\"\u003eQuickstart\u003c/h2\u003e\u003ca id=\"user-content-quickstart\" class=\"anchor\" aria-label=\"Permalink: Quickstart\" href=\"#quickstart\"\u003e\u003csvg class=\"octicon octicon-link\" viewBox=\"0 0 16 16\" version=\"1.1\" width=\"16\" height=\"16\" aria-hidden=\"true\"\u003e\u003cpath d=\"m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z\"\u003e\u003c/path\u003e\u003c/svg\u003e\u003c/a\u003e\u003c/div\u003e\n\u003col dir=\"auto\"\u003e\n\u003cli\u003e\n\u003cp dir=\"auto\"\u003eFrom the \u003ca href=\"https://console.cloud.google.com/iot/\" rel=\"nofollow\"\u003eGoogle Cloud IoT Core section\u003c/a\u003e\nof the Google Cloud console, create a device registry.\u003c/p\u003e\n\u003c/li\u003e\n\u003cli\u003e\n\u003cp dir=\"auto\"\u003eUse the \u003ca href=\"/chawon/java-docs-samples/blob/cr-wait-sample/iot/api-client/generate_keys.sh\"\u003e\u003ccode\u003egenerate_keys.sh\u003c/code\u003e\u003c/a\u003e script to generate your signing keys:\u003c/p\u003e\n\u003cp dir=\"auto\"\u003e./generate_keys.sh\u003c/p\u003e\n\u003c/li\u003e\n\u003cli\u003e\n\u003cp dir=\"auto\"\u003eAdd a device using the file \u003ccode\u003ersa_cert.pem\u003c/code\u003e, specifying RS256_X509 and using the\ntext copy of the public key starting with the ----START---- block of the certificate.\u003c/p\u003e\n\u003cp dir=\"auto\"\u003ecat rsa_cert.pem\u003c/p\u003e\n\u003c/li\u003e\n\u003cli\u003e\n\u003cp dir=\"auto\"\u003eConnect a device using the HTTP or MQTT device samples in the \u003ca href=\"/chawon/java-docs-samples/blob/cr-wait-sample/iot/api-client/manager\"\u003emanager\u003c/a\u003e folder.\u003c/p\u003e\n\u003c/li\u003e\n\u003cli\u003e\n\u003cp dir=\"auto\"\u003eProgrammattically control device configuration and using the device manager sample in the \u003ca href=\"/chawon/java-docs-samples/blob/cr-wait-sample/iot/api-client/manager\"\u003emanager\u003c/a\u003e folder.\u003c/p\u003e\n\u003c/li\u003e\n\u003c/ol\u003e\n\u003c/article\u003e","errorMessage":null,"headerInfo":{"toc":[{"level":1,"text":"Cloud IoT Core Java Samples","anchor":"cloud-iot-core-java-samples","htmlText":"Cloud IoT Core Java Samples"},{"level":2,"text":"Quickstart","anchor":"quickstart","htmlText":"Quickstart"}],"siteNavLoginPath":"/login?return_to=https%3A%2F%2Fgithub.com%2Fchawon%2Fjava-docs-samples%2Ftree%2Fcr-wait-sample%2Fiot%2Fapi-client"}},"totalCount":5,"showBranchInfobar":true},"fileTree":{"iot":{"items":[{"name":"api-client","path":"iot/api-client","contentType":"directory"}],"totalCount":1},"":{"items":[{"name":".github","path":".github","contentType":"directory"},{"name":".kokoro","path":".kokoro","contentType":"directory"},{"name":"appengine-java11","path":"appengine-java11","contentType":"directory"},{"name":"appengine-java8","path":"appengine-java8","contentType":"directory"},{"name":"auth","path":"auth","contentType":"directory"},{"name":"automl","path":"automl","contentType":"directory"},{"name":"bigquery","path":"bigquery","contentType":"directory"},{"name":"bigtable","path":"bigtable","contentType":"directory"},{"name":"cdn","path":"cdn","contentType":"directory"},{"name":"cloud-sql","path":"cloud-sql","contentType":"directory"},{"name":"compute","path":"compute","contentType":"directory"},{"name":"container-registry","path":"container-registry","contentType":"directory"},{"name":"datacatalog","path":"datacatalog","contentType":"directory"},{"name":"dataflow","path":"dataflow","contentType":"directory"},{"name":"endpoints","path":"endpoints","contentType":"directory"},{"name":"eventarc","path":"eventarc","contentType":"directory"},{"name":"flexible","path":"flexible","contentType":"directory"},{"name":"functions","path":"functions","contentType":"directory"},{"name":"healthcare","path":"healthcare","contentType":"directory"},{"name":"iam","path":"iam","contentType":"directory"},{"name":"iap","path":"iap","contentType":"directory"},{"name":"iot","path":"iot","contentType":"directory"},{"name":"jobs","path":"jobs","contentType":"directory"},{"name":"kms","path":"kms","contentType":"directory"},{"name":"language","path":"language","contentType":"directory"},{"name":"media","path":"media","contentType":"directory"},{"name":"memorystore","path":"memorystore","contentType":"directory"},{"name":"mlengine","path":"mlengine","contentType":"directory"},{"name":"monitoring","path":"monitoring","contentType":"directory"},{"name":"opencensus","path":"opencensus","contentType":"directory"},{"name":"pubsub","path":"pubsub","contentType":"directory"},{"name":"pubsublite","path":"pubsublite","contentType":"directory"},{"name":"run","path":"run","contentType":"directory"},{"name":"secretmanager","path":"secretmanager","contentType":"directory"},{"name":"session-handling","path":"session-handling","contentType":"directory"},{"name":"spanner","path":"spanner","contentType":"directory"},{"name":"speech","path":"speech","contentType":"directory"},{"name":"storage","path":"storage","contentType":"directory"},{"name":"tasks","path":"tasks","contentType":"directory"},{"name":"texttospeech","path":"texttospeech","contentType":"directory"},{"name":"trace","path":"trace","contentType":"directory"},{"name":"translate","path":"translate","contentType":"directory"},{"name":"unittests","path":"unittests","contentType":"directory"},{"name":"video","path":"video","contentType":"directory"},{"name":"vision","path":"vision","contentType":"directory"},{"name":"workflows","path":"workflows","contentType":"directory"},{"name":".gitallowed","path":".gitallowed","contentType":"file"},{"name":".gitignore","path":".gitignore","contentType":"file"},{"name":"CODE_OF_CONDUCT.md","path":"CODE_OF_CONDUCT.md","contentType":"file"},{"name":"CONTRIBUTING.md","path":"CONTRIBUTING.md","contentType":"file"},{"name":"LICENSE","path":"LICENSE","contentType":"file"},{"name":"README.md","path":"README.md","contentType":"file"},{"name":"SAMPLE_FORMAT.md","path":"SAMPLE_FORMAT.md","contentType":"file"},{"name":"SECURITY.md","path":"SECURITY.md","contentType":"file"},{"name":"build.gradle","path":"build.gradle","contentType":"file"},{"name":"codecov.yml","path":"codecov.yml","contentType":"file"},{"name":"renovate.json","path":"renovate.json","contentType":"file"}],"totalCount":57}},"fileTreeProcessingTime":64.858402,"foldersToFetch":[],"treeExpanded":true,"symbolsExpanded":false,"csrf_tokens":{"/chawon/java-docs-samples/branches":{"post":"R-vo3d-h8rEAI_YZTXIcBXSYTsBHEeMfH1Nk9CxfSKlW07mrSvB-RuAYydcpy8SIJRlUTLIFZMqRPoF5PuvvDA"},"/chawon/java-docs-samples/branches/fetch_and_merge/cr-wait-sample":{"post":"PEkyQCXJ61PUY9yCdG6PapLykyzE9kV1ey21rtLXc_fm4IQGUwmq_Vww87XH2QwIYrff6KY4mBFJxEceASOh2A"},"/chawon/java-docs-samples/branches/fetch_and_merge/cr-wait-sample?discard_changes=true":{"post":"Lt9-IlzkgDk8bGAzQEoFIBZISwCypB9RUK4sUDnwS2f0dshkKiTBl7Q_TwTz_YZC5g0HxNBqwjViR97g6gSZSA"}}},"title":"java-docs-samples/iot/api-client at cr-wait-sample · chawon/java-docs-samples","appPayload":{"helpUrl":"https://docs.github.com","findFileWorkerPath":"/assets-cdn/worker/find-file-worker-7d7eb7c71814.js","findInFileWorkerPath":"/assets-cdn/worker/find-in-file-worker-1ae9fa256942.js","githubDevUrl":null,"enabled_features":{"code_nav_ui_events":false,"react_blob_overlay":false,"accessible_code_button":true,"github_models_repo_integration":false}}}
You can’t perform that action at this time.