Objective of this exercise is to learn how to send data from Raspberry PI or other devices to AWS IOT Core
Following commands already run on Raspberry PI to install nodejs, git and AWS Common Runtime library and AWS IOT Device SDK.
sudo apt-get install cmake
sudo apt-get install libssl-dev
git --version
sudo apt-get install git
cd ~
curl -sL https://deb.nodesource.com/setup_12.x | sudo -E bash -
sudo apt-get install -y nodejs
node -v
sudo shutdown -r 0
cd ~
npm install aws-crt
npm install aws-iot-device-sdk-v2
cd ~
git clone https://github.com/aws/aws-iot-device-sdk-js-v2.git
cd ~/aws-iot-device-sdk-js-v2
npm install
Select View Connection Options
Select Onboard device
Create a thing
Download connect kit files
Copy the downloaded connection kit file to Raspberry PI
Run the following commands on PI -
Check messages being sent from pub sub application and received from IOT Core
Check messages being sent from pub sub application and sent from PI