The level 10 file for creating beacons This requires BlueZ to have the experimental flag set
Create a non-connectable Bluetooth instance advertising information
Add manufacturer information to be used in beacon message :param manufacturer: Use numbers from Bluetooth SIG https://www.bluetooth.com/specifications/assigned-numbers/16-bit-UUIDs-for-Members :param data: Data to be sent (Limit of ??)
Add service and service data to be used in beacon message :param service: Valid service UUID :param data: Data to be sent (Limit of ??)
Use to include TX power in advertisement. This is different to the TX power in specific beacon format (e.g. Eddystone) :param show_power: boolean value :return:
Start beacon advertising
Classes that represent the GATT features of a remote device.
Create a BLE instance taking the Central role.
Specify a characteristic of interest on the remote device by using the GATT Service UUID and Characteristic UUID :param srv_uuid: 128 bit UUID :param chrc_uuid: 128 bit UUID :return:
Initiate a connection to the remote device and load GATT database once resolved
Parameters: profile – (optional) profile to use for the connection.
Indicate whether the remote device is currently connected.
Disconnect from the remote device.
Once the remote device has been connected to and the GATT database has been resolved then it needs to be loaded. :return:
Provide a callback for ‘on_data’. The callback will be run whenever an Eddystone packet is detected.
Parameters: on_data – A function to be called on Eddystone packet Returns: None
Classes required to create a Bluetooth Peripheral.
Current classes include:
- Application – Root class
- Service – Bluetooth Service
- Characteristic – Bluetooth Characteristic
- Descriptor – Bluetooth Descriptor
- Advertisement – Bluetooth Advertisement
This requires BlueZ to have the experimental flag to be enabled
Advertisement registration callback.
Advertisement registration error callback.
Service registration callback.
Service registration error callback.