January 2018
Intermediate to advanced
278 pages
5h 13m
English
Now we will review our program, comp-demo.js. The following is a list of steps for the program:
var awsIot = require('aws-iot-device-sdk');var device = awsIot.device({ keyPath: 'cert/macos-computer.private.key', certPath: 'cert/macos-computer.cert.pem', caPath: 'cert/root-CA.crt', host: 'xxxxxxx.iot.ap-southeast-1.amazonaws.com', clientId: 'user-testing', region: 'ap-southeast-' });
device .on('connect', function() ...