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.
Multiple instances of the same service
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.
Parameters
serviceUuid
The UUID of the GATT service.
name
The name of the profile. This is for convenience, used only in logging.