November 2018
Intermediate to advanced
556 pages
14h 42m
English
Let's get the MQTT client from the official GCP GitHub repository. In this simple example, we are going to use Node.js:
$ mkdir my-iiot-device$ cd my-iiot-device$ git clone https://github.com/GoogleCloudPlatform/nodejs-docs-samples$ cd nodejs-docs-samples/iot/mqtt_example/$ npm install
$ node cloudiot_mqtt_example_nodejs.js \ --projectId=iiot-book \ --cloudRegion=europe-west1 \ --registryId=iiot-book-registry ...