Skip to content

facundo-hm/virtual-device-gcp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Virtual Device - GCP

Project description

Python

Getting started

Install dependencies

$ pip install -r requirements.txt

Create .env file and define the variables

$ cp env.sample .env

Usage

$ python src/virtual_device.py --device_id <my-device-id> publish --topic state --message <my-message>
virtual_device.py [OPTIONS] COMMAND [ARGS]...

Options:
  --project_id TEXT            GCP project id
  --cloud_region TEXT          GCP project region
  --registry_id TEXT           GCP regisry id
  --device_id TEXT             Device id
  --private_key_file TEXT      Private key file path
  --algorithm TEXT             Algorithm
  --mqtt_bridge_hostname TEXT  MQTT bridge hostname
  --mqtt_bridge_port INTEGER   MQTT bridge port 8883 or 443
  --ca_certs TEXT              CA root from https://pki.google.com/roots.pem
  --help                       Show this message and exit.

Commands:
  publish
  subscribe

Releases

No releases published

Packages

No packages published

Languages