The AWS IoT Device SDK is a quick and easy way to connect your IoT devices with AWS IoT Core. To date, AWS provides IoT Device SDKs for Node.js, Java, Python, and Embedded C. For this particular section, we will be connecting our dummy IoT device with AWS IoT, using the Node.js SDK.
Before we get things started, ensure that you have the latest versions of node and NPM installed and running on your device. Since we are simulating an IoT device using an Ubuntu virtual machine, you can use the following commands to install and verify node and NPM versions:
# sudo apt-get update # sudo apt-get install nodejs npm # node -v && npm -v
Once the required packages are installed, we now need to install the AWS ...