Setting up Bluetooth

NOTE: Your board should be connected to a Wi-fi network, if you haven't set this up, please refer to the Getting Started Guide

  1. Clone Edison_Bluetooth

    root@edison # git clone https://github.com/DnPlas/Edison_Bluetooth.git

  2. Select the project you'll be working with and edit the BT setup script

    Open bluscript.sh with nano and edit line 24 so that it points to the project you'll be working with (default:"gardening-system").

    That is:

 root@edison # cd Edison_Bluetooth
 root@edison # nano bluscript.sh
 ...
python /home/root/Edison_Bluetooth/projects/your-project/spp.py &

Once the file is opened, replace your-project with one of the options listed below.

  • temperature-monitor
  • gardening-system
  • hospital-assistant

To save all changes and exit, hit Ctrl+x, then Y and [ENTER]

3.Run the BT setup script and wait for it to finish.

root@edison # ./bluscript.sh
Wait for the Bluetooth setup to finish
...
Now can now pair your device with Edison

4.Pair your device with Edison.

In most cases, all you have to do is enter your device's Bluetooth settings and select 'edison' or 'Pair to edison'. Note that this step will change depending on your device.

Once your device is paired to Edison, go to the Projects Section and follow the instructions there to see modify the code and see it in action

results matching ""

    No results matching ""