blatann.services.glucose package

blatann.services.glucose.add_glucose_service(gatts_database, glucose_database, security_level=SecurityLevel.OPEN, include_context_characteristic=True)

Adds the Glucose bluetooth service to the Gatt Server database

Parameters
  • gatts_database (blatann.gatt.gatts.GattsDatabase) – The GATT database to add the service to

  • glucose_database (IGlucoseDatabase) – The database which holds the glucose measurements

  • security_level (SecurityLevel) – The security level for the record-access control point of the service

  • include_context_characteristic – flag whether or not to include the optional context characteristic in the service. If this is False, any context stored with glucose measurements will not be reported.

Submodules