blatann.services.nordic_uart package
- blatann.services.nordic_uart.add_nordic_uart_service(gatts_database, max_characteristic_size=None)
Adds a Nordic UART service to the database
- Parameters:
gatts_database (blatann.gatt.gatts.GattsDatabase) – The database to add the service to
max_characteristic_size – The size of the characteristic which determines the read/write chunk size. This should be tuned to the MTU size of the connection
- Returns:
The Nordic Uart Service
- Return type:
_Server
- blatann.services.nordic_uart.find_nordic_uart_service(gattc_database)
Finds a Nordic UART service in the given GATT client database
- Parameters:
gattc_database (blatann.gatt.gattc.GattcDatabase) – the GATT client database to search
- Returns:
The UART service if found, None if not found
- Return type:
_Client