GATTCConnection
The GATT Client is the device that requests data from the server, otherwise known as the master device (commonly this might be a phone/tablet/PC). All transactions are initiated by the master, which receives a response from the slave.
Methods
connection.disconnect()
Closes the BLE connection. Returns None
.
connection.isconnected()
Returns True
if the connection is still open. False
otherwise.
Example:
connection.services()
Performs a service search on the connected BLE peripheral (server) a returns a list containing objects of the class GATTCService if the search succeeds.
Example:
Last updated