Connecting to AWS

. find IP where is the raspi is connected

using nmap [install if needed] find the IP for raspi [use your IP for connection, check system settings]

$nmap -sn 192.168.2.4/24 

 

. connect to raspi

$ssh pi@192.168.2.10 [i assume i got raspi on xxx.10]

password default: raspberry

  1. Install AWS SDK,

http://docs.aws.amazon.com/iot/latest/developerguide/iot-device-sdk-node.html

 

FROM there,

2. install npm

15min

3. npm install aws-iot-device-sdk

5 min

4. cd to Documentws

clone latest code

$git clone https://github.com/hypercoms/AWS_IoT.git

cd to  AWS…

/home/pi/Documents/AWS_IoT

confirm certs are in  above path , algong with some JS test files

 

 

. run the sensor tag + AWS IoT  node file

$sudo node awsSensorTag_syd.js

> should show “connected”

. on the sensor tag

turn on sensor tag by pressing button with circle,

should show  “coonected”

Now values are sent to DB

Submit a Comment

Your email address will not be published. Required fields are marked *

LinkedIn Auto Publish Powered By : XYZScripts.com