Service – BLE service

Stores information about a BLE service and its characteristics.

class bleio.Service(uuid, characteristics, *, secondary=False)

Create a new Service object identified by the specified UUID. To mark the service as secondary, pass True as secondary.

Parameters:
  • uuid (bleio.UUID) – The uuid of the service
  • characteristics (iterable) – the Characteristic objects for this service
  • secondary (bool) – If the service is a secondary one
characteristics

A list of bleio.Characteristic that are offered by this service. (read-only)

uuid

The UUID of this service. (read-only)