NOTE: for default region you must enter us-east-1 in order to be able to configure AWS for IoT. The default format can be left as json.
In order to get permission to download the AWS IoT tools, attach the administrator account policy to the user. To do this go to the "Users Panel" in the IAM console, select the user you created, attach policy, and select administrator account.
First create a folder to store your certificates in:
NOTE: replace with the value stored in "certificateArn" in the certOutput.txt file.
To interact with AWS IoT from your device using the certificates you created, you will also need a root certificate. Click here to download the root certificate. Save this file to your desktop and name it “aws-iot-rootCA.crt”
rfkill unblock bluetooth
hciconfig hci0 up
vi /etc/opkg/base-feeds.conf (insert only following lines)
src/gz all http://repo.opkg.net/edison/repo/all
src/gz edison http://repo.opkg.net/edison/repo/edison
src/gz core2-32 http://repo.opkg.net/edison/repo/core2-32
Note: “vi” is a barebones text editor which has some confusing syntax. Copy and paste (e.g. vi’s insert mode) the above three lines into the .conf file indicated and then close vi by hitting “Shift + :” (to leave Insert mode) after making the above edit and then typing “wq” and hitting enter to write the change and then quit.
Before we proceed, make sure your Edison is online via Wi-Fi.
opkg install bluez5-dev
This is how you find your BB-8 with an Intel Edison using node.js
1To connect to your BB-8 or Ollie, you first need to determine its UUID.
2Once you have Noble installed, you can use the advertisement-discovery.js
3program to determine the device's UUID:
456$ node ./node_modules/noble/examples/advertisement-discovery.js
7peripheral discovered (944f561f8cf441f3b5405ed48f5c63cf with address <unknown, unknown>, connectable true, RSSI -73:
8 hello my local name is:
10 can I interest you in any of the following advertised services:
12 here is my manufacturer data:
14 my TX power level is: