There are a number of text conventions used throughout this book.
CodeInText: Indicates code words in text, database table names, folder names, filenames, file extensions, pathnames, dummy URLs, user input, and Twitter handles. Here is an example: "Now, we will construct the GET URL that we will use to send the data: https://api.thingspeak.com/update?api_key=R9XY4AXEG52DJHIT&field1=25&field2=30."
A block of code is set as follows:
[default]
var Protocol = require('azure-iot-device-mqtt').Mqtt;
var Client = require('azure-iot-device').Client;
var Message = require('azure-iot-device').Message;
var async = require('async');
When we wish to draw your attention to a particular part of a code block, the relevant lines or items are set in bold:
[default]
var Protocol = require('azure-iot-device-mqtt').Mqtt;
var Client = require('azure-iot-device').Client;
var Message = require('azure-iot-device').Message;
var async = require('async');
Any command-line input or output is written as follows:
$ curl -sL https://deb.nodesource.com/setup_7.x | sudo -E bash -
$ sudo apt install nodejs
Bold: Indicates a new term, an important word, or words that you see onscreen. For example, words in menus or dialog boxes appear in the text like this. Here is an example: "Update the previous URL with your Write API Key."
Warnings or important notes appear like this.
Tips and tricks appear like this.