Library ble

To use this library in your code:

import ble

Interfaces

An attribute is the smallest data entity of GATT (Generic Attribute Profile).

Classes

An adapter represents the chip or peripheral that is used to communicate over BLE.

Advertisement data as either sent by advertising or received through scanning.

Deprecated. Use Advertisement instead.

A BLE Universally Unique ID.

A Bluetooth data block.

Exported classes

The manager for creating client connections.

Defines a BLE service with characteristics.

The manager for advertising and managing local services.

A remote characteristic belonging to a remote service.

A remote connected device.

A remote device discovered by a scanning.

A service connected to a remote device through a client.

Globals

A device that doesn't support the Bluetooth Classic radio.
Since Toit only supports BLE, this flag should always be set.

A device that is discoverable for an indefinite period of time.
See the core specification Section 9.2.4.

A device that is a controller.
This device is both an LE and a BR/EDR controller.

A device that is a host.
This device is both an LE and a BR/EDR host.

A device that is discoverable for a limited period of time.
See the core specification Section 9.2.3.

This device accepts a connection from a known peer device.
See the core specification Section 9.3.3.

This device should not be connected to.
See the core specification Section 9.3.2.

This device accepts connections from any device.
See the core specification Section 9.3.4.

Functions

ble-get-subscribed-clients characteristic/any -> any