August 2017
Intermediate to advanced
254 pages
6h 10m
English
In this section we are going to build the IoT protocol gateway:
{ cmd: 'connect', protocolId: 'MQTT', // Or 'MQIsdp' in MQTT 3.1.1 clean: true, // Can also be false clientId: 'myFirstDevice', // Device Id registered in IoT Hub keepalive: 0, // Seconds which can be any positive number, with 0 as the default setting username: 'IoTHubCookBook.azure-devices.net/myFirstDevice/api-version=2016-11-14', // 'hostname/deviceId/version' password: 'LKCXsBKMKISTjr3ii08UXgIpELxy8/38EiMuxNAiqek=', // SharedAccessKey will: { topic: 'devices/myFirstDevice/messages/events/' }}
readonly string iotHubD2cEndpoint = "messages/events";readonly string iotHubD2cEndpoint = "messages/events"; ...