Skip to content

question about the bluez AcquireNotify code #1951

@Raupinger

Description

@Raupinger

I'm using @vovagorodok's ArduinoBleOTA Library, and I'm having issues with the upload script stalling on its start_notify call. Quick question as I try to figure out if this is an upstream or downstream bug:
stepping to line 946 here:

use_notify_acquire = (
not force_use_start_notify and "NotifyAcquired" in characteristic.obj[1]
)
logger.debug(
'using "%s" for notifications on characteristic %d',
"AcquireNotify" if use_notify_acquire else "StartNotify",
characteristic.handle,
)
if use_notify_acquire:
reply = await self._bus.call(
Message(

I get this for characteristic.obj[1]:

{'Handle': 96,
 'UUID': 'dac89266-35a1-11ef-aba2-0f0127bce478',
 'Service': '/org/bluez/hci0/dev_F8_B3_B7_47_75_CA/service005d',
 'Value': b'',
 'Notifying': False,
 'Flags': ['read', 'notify'],
 'NotifyAcquired': False,
 'MTU': 242}

but use_notify_acquire ends up being True.
Is that intentional?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Backend: BlueZIssues and PRs relating to the BlueZ backendmore info requiredIssues does not have a reproducible test case, has insufficent logs or otherwise needs more feedback

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions