The GATT Server allows the device to act as a peripheral and hold its own ATT lookup data, server & characteristic definitions. In this mode, the device acts as a slave and a master must initiate a request.
Services are used to categorize data up into specific chunks of data known as characteristics. A service may have multiple characteristics, and each service has a unique numeric ID called a UUID.
The following class allows control over Server services.
Starts the service if not already started.
Stops the service if previously started.
Creates a new characteristic on the service. Returns an object of the class GATTSCharacteristic. The arguments are:
GATTSCharacteristic
uuid
permissions
properties
value
service.characteristic('temp', value=25)