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