Closed Univa closed 2 months ago
Thanks for the report. This is a regression after I introduced the advertiser. It should be changed to know which kind of advertiser it is and pass that on when signalling the cancel. Either a bool param, or a generic param on the Advertiser, I think I prefer the bool param.
The
Drop
implementation forAdvertiser
callsself.advertise_command_state.cancel(true)
. Thetrue
boolean value corresponds to extended advertising, based on therun_with_handler
implementation.In scenarios where you are not using extended advertising, the host could send an
LeSetExtAdvEnable
(with afalse
value) command, if theAdvertiser
struct gets dropped.For example, this can cause issues with the
apache-nimble
controller:Since the code above will call
Advertiser::drop
, the host will send theLeSetExtAdvEnable
command, then theapache-nimble
controller would return a "Command Disallowed" error.