-
Bug
-
Resolution: Fixed
-
Major
-
master
When issuing multiple requests to bluetooth service, the bluetooth settings dialog starts duplicating entries.
The issue should easily be reproduced doing the following:
Export a phone's bluetooth address to a variable in the following way
export btaddr=dev_01_23_45_67_89_0A
Then run the following oneliner a couple of times:
afb-client-demo -H 'ws://localhost:30005/api?token=HELLO&uuid=magic' bluetooth-manager pair "{'device': '$btaddr'}" && \ afb-client-demo -H 'ws://localhost:30005/api?token=HELLO&uuid=magic' bluetooth-manager connect "{'device': '$btaddr'}" && \ afb-client-demo -H 'ws://localhost:30005/api?token=HELLO&uuid=magic' bluetooth-manager disconnect "{'device': '$btaddr'}" && \ afb-client-demo -H 'ws://localhost:30005/api?token=HELLO&uuid=magic' bluetooth-manager remove_device "{'device': '$btaddr'}"
and after each run accept the pairing request on the phone.