Skip to content

Enable services changed on Generic Attribute service #405

@chadrockey

Description

@chadrockey

My iOS development device is constantly caching the gatt services and characteristics and won't forget them for 24 to 48 hours. Even with a restart and bluetooth off/on, it's so sticky and really slows development sometimes.

Is there a way to advertise the services changed characteristic on the Generic Attribute service?

The Generic Attribute service is 0x1801 (00001801-0000-1000-8000-00805F9B34FB), but when I try to register this service, I get the following:

bluezero.GATT - WARNING - Failed to register application: org.bluez.Error.Failed: Failed to create entry in database

The Services Changed characteristic is 0x2A05 and is a notify characteristic.

If we find a way to do this, I'll make a PR so that it can be a quick toggle from high level code such as:

my_peripheral.enable_services_changed()

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions