blatann.services.current_time package¶
- blatann.services.current_time.add_current_time_service(gatts_database, enable_writes=False, enable_local_time_info=False, enable_reference_info=False)¶
Adds a Current Time service to the given GATT server database
- Parameters
gatts_database (blatann.gatt.gatts.GattsDatabase) – The database to add the service to
enable_writes – Makes the Current time and Local Time info characteristics writable so clients/centrals can update the server’s time
enable_local_time_info – Enables the Local Time characteristic in the service
enable_reference_info – Enables the Reference Info characteristic in the service
- Returns
The Current Time service
- Return type
_CurrentTimeServer
Submodules¶
- blatann.services.current_time.constants module
- blatann.services.current_time.data_types module
- blatann.services.current_time.service module
CurrentTimeServerCurrentTimeServer.is_writableCurrentTimeServer.has_local_time_infoCurrentTimeServer.has_reference_time_infoCurrentTimeServer.on_current_time_writeCurrentTimeServer.on_local_time_info_writeCurrentTimeServer.configure_automatic()CurrentTimeServer.set_time()CurrentTimeServer.set_local_time_info()CurrentTimeServer.set_reference_info()CurrentTimeServer.add_to_database()
CurrentTimeClientCurrentTimeClient.on_current_time_updatedCurrentTimeClient.on_local_time_info_updatedCurrentTimeClient.on_reference_info_updatedCurrentTimeClient.has_local_time_infoCurrentTimeClient.has_reference_infoCurrentTimeClient.can_enable_notificationsCurrentTimeClient.can_set_current_timeCurrentTimeClient.can_set_local_time_infoCurrentTimeClient.read_time()CurrentTimeClient.set_time()