GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — java-docs-samples/iot/api-client/scripts at master · rDarge/java-docs-samples

Expand file tree

/

scripts

/
Copy path

Directory actions

More options

More options

Directory actions

More options

More options

Latest commit

 

History

History
History
 
 
/

scripts

/
Copy path

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
src/main/java/com/example/pubsub
src/main/java/com/example/pubsub
 
 
README.md
README.md
 
 
pom.xml
pom.xml
 
 

README.md

Outline

Getting Started with Cloud Pub/Sub and the Google Cloud Client libraries

Google Cloud IoT Core is a fully-managed, globally distributed solution for managing devices and sending / receiving messages from devices.

This script manages the Google Cloud Pub/Sub project associated with your Google Cloud IoT Core project to grant permissions to the protocol bridge.

Create your PubSub topic noting the project ID and topic ID, then build and run the sample to configure your topic.

Setup

  • Install Maven

  • Build your project with:

    mvn clean compile assembly:single

Running the script

The following code will run the helper script:

java -cp target/pubsub-policy-helper-1.0.0-jar-with-dependencies.jar \
    com.example.pubsub.AddCloudIotService <topicName> <projectId>

For example, the following example will configure the device-events topic for the my-iot-project project.

java -cp target/pubsub-policy-helper-1.0.0-jar-with-dependencies.jar \
    com.example.pubsub.AddCloudIotService device-events my-iot-project
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.