Skip to content

Instantly share code, notes, and snippets.

View plche's full-sized avatar
:octocat:

Percy Che plche

:octocat:
View GitHub Profile
@DazWilkin
DazWilkin / gcpiot_startup.sh
Last active December 25, 2021 12:40
Google Cloud IoT Core & Golang
echo "Installing Mosquitto (MQTT) client tools"
opkg update > /dev/null
opkg install mosquitto mosquitto-client > /dev/null
echo "Configure GCP Cloud IoT"
SERVICE_ENDPOINT="mqtt.googleapis.com:8883"
read -p "GCP Project ID : " PROJECT
read -p "GCP Region : " REGION
read -p "GCP IoT Registry ID: " REGISTRY
read -p "GCP IoT Device ID : " DEVICE