You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The timeout in Dnssd.h/cpp, which defaults to CHIP_DEVICE_CONFIG_DISCOVERY_TIMEOUT_SECS but can be overridden, including to "no timeout".
The timeouts in the various BLEManagerImpl::_SetAdvertisingEnabled implementations. These use CHIP_DEVICE_CONFIG_BLE_ADVERTISING_TIMEOUT.
Proposed Solution
We should probably align these things. In particular, we should remove the timeout handling from the BLEManagers and the Dnssd code and just have the commissioning window manager manage that state (which it already does).
The commissioning window manager handles advertisement start/stop. We
don't need per-advertisement-mechanism duplication of timeout timers.
Specific changes:
1) Remove the "stop advertisement" timing from the (few) platform BLE managers
that did it.
2) Remove CHIP_DEVICE_CONFIG_BLE_ADVERTISING_TIMEOUT altogether.
3) Remove commissioning advertisement timing from Dnssd.cpp.
4) Remove the Linux shell command for setting the "discovery timeout", because
it's really not clear what it's supposed to do and how it should work.
Fixesproject-chip#16693
The commissioning window manager handles advertisement start/stop. We
don't need per-advertisement-mechanism duplication of timeout timers.
Specific changes:
1) Remove the "stop advertisement" timing from the (few) platform BLE managers
that did it.
2) Remove CHIP_DEVICE_CONFIG_BLE_ADVERTISING_TIMEOUT altogether.
3) Remove commissioning advertisement timing from Dnssd.cpp.
4) Remove the Linux shell command for setting the "discovery timeout", because
it's really not clear what it's supposed to do and how it should work.
Fixes#16693
Problem
Right now we have three separate commissioning-related timeouts:
Proposed Solution
We should probably align these things. In particular, we should remove the timeout handling from the BLEManagers and the Dnssd code and just have the commissioning window manager manage that state (which it already does).
@Damian-Nordic @andy31415
The text was updated successfully, but these errors were encountered: