April 2018
Intermediate to advanced
332 pages
8h 5m
English
To read the data from the device, you can either use the same Raspberry Pi 3 or another computer. I am going to use my MacBook as a client that is interested in the data sent by the device:
$ npm init --yes
$ npm install azure-event-hubs --save
var EventHubClient = require('azure-event-hubs').Client;var connectionString = 'HostName=Pi3-DHT11-Nodes.azure-devices.net;SharedAccessKeyName=iothubowner;SharedAccessKey=J0MTJVy+RFkSaaenfegGMJY3XWKIpZp2HO4eTwmUNoU='; ...