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
CurrentTimeServer
CurrentTimeServer.is_writable
CurrentTimeServer.has_local_time_info
CurrentTimeServer.has_reference_time_info
CurrentTimeServer.on_current_time_write
CurrentTimeServer.on_local_time_info_write
CurrentTimeServer.configure_automatic()
CurrentTimeServer.set_time()
CurrentTimeServer.set_local_time_info()
CurrentTimeServer.set_reference_info()
CurrentTimeServer.add_to_database()
CurrentTimeClient
CurrentTimeClient.on_current_time_updated
CurrentTimeClient.on_local_time_info_updated
CurrentTimeClient.on_reference_info_updated
CurrentTimeClient.has_local_time_info
CurrentTimeClient.has_reference_info
CurrentTimeClient.can_enable_notifications
CurrentTimeClient.can_set_current_time
CurrentTimeClient.can_set_local_time_info
CurrentTimeClient.read_time()
CurrentTimeClient.set_time()