Bluetooth#

Bluetooth is available on the host (provided it’s supported by the hardware, e.g. the Raspberry PI) and select microcontrollers (e.g. the ESP32).

This section contains a collection of sample code.

To follow along, download the code and configure a microcontroller.

%%bash

cd $IOT_PROJECTS
svn checkout https://github.com/iot49/iot49.org/trunk/docs/projects/bluetooth
Checked out revision 152.
%%writefile bluetooth.yaml
ble:  
    uid: 24:0a:c4:13:ad:14
    path: bluetooth
    resources:
        - secrets.py:
            path: libs
        - code
Writing bluetooth.yaml
%discover
ble  serial:///dev/ttyUSB0