Simple
A class representing a simple GATT profile, based on a single GATT service.
This is intended for profiles that have a single GATT service, i.e. Battery Profile.
In rare cases, a peripheral may have multiple instances of the same service, e.g. multiple batteries reporting their level, each with a different instance of a Battery Service. Override instance method to pick a desired instance of a remote service.
Note, that the list of services contains only GATT services with specified service UUID.
See Profile for a full worked example (LedButtonProfile).
Parameters
The UUID of the GATT service.
The name of the profile. This is for convenience, used only in logging.
Properties
Functions
Notifies the profile implementation that service discovery has failed.
This method should initialize the profile.
This method should select a single service instance from the list of identical services returned by the service discovery.
Validates and prepares the services to be used in initialize.
Notifies the profile implementation, that the peripheral does not support the required profile services.