Step-by-step – installing the Arduino Node.js SDK client
From this point, we are going to use the Node.js SDK for our exercises and experiments. Before moving to the practical exercises, we need to first install the Arduino IoT Cloud package for Node.js. Download and install Node.js from https://nodejs.org/. After the installation of Node.js is complete, open up the Windows/Mac/Linux Terminal and navigate to the directory where you will set up your coding workspaces using VSCode:
npm install @arduino/arduino-iot-client npm i request-promise
Type the two preceding commands in the Terminal and wait for the installation to complete. After a successful installation, open up VSCode and add the folder (where you have installed the Node.js Arduino IoT Cloud SDK) to the workspace where you installed the Arduino IoT Cloud and request-promise modules.
Navigate to the book’s official GitHub repository and download all the code from this chapter’s folder. Copy the...