Closed Sia1997 closed 1 year ago
I think this happens because the advertisements are not being unregistered. Registering and unregistering happens in start/stop advertising.
So for every time you call binc_adapter_start_advertising
, you need to call binc_adapter_stop_advertising
.
Thank you for your reply!
I have tried the solution you mentioned, however when I call binc_adapter_stop_advertising, it says [Adapter] failed to unregister advertisement (error 36: GDBus.Error:org.bluez.Error.DoesNotExist: Does Not Exist).
could you provide any interface to obtain the existing advertisement?
It looks like you are calling 'stop_advertising' when you didn't do a 'start_advertising'. Nonetheless, this error is 'innocent' and you should not see your original problem anymore, right?
After tracing the error, it turned out to be the problem of hard-ware. Thanks for your help!
Ok, thanks for letting us know
Hi, Thank you for your work on this library, it helps me a lot.
However, when I try to run peripheral so that I could establish a ble connection, I always got an error like "DEBUG [Adapter] failed to register advertisement (error 36: GDBus.Error:org.bluez.Error.NotPermitted: Maximum advertisements reached)" caused by binc_adapter_start_advertising. What may cause this error?
Could you have a look over this?
Thanks!