In homescreen-2017 I used agl-service-bluetooth's "subscribe" verb to subscribe bluetooth's connection status. when I connect or disconnect bluetooth device(phone) in settings screen, homescreen-2017 can received message as below: [5,\"Bluetooth-Manager/connection\",{\"event\":\"Bluetooth-Manager\\/connection\",\"data\":{\"Status\":\"connected\",\"Address\":\"A4:9A:58:A5:FB:86\"},\"jtype\":\"afb-event\"}] [5,\"Bluetooth-Manager/connection\",{\"event\":\"Bluetooth-Manager\\/connection\",\"data\":{\"Status\":\"disconnected\",\"Address\":\"A4:9A:58:A5:FB:86\"},\"jtype\":\"afb-event\"}]
But when I disconnect bluetooth connection from phone, homescreen-2017 can't recevice any message.I thought in this situation app should receive connection event.
board: renesas m3ulcb bluetooth device: Bluetooth Dongle
Environment
None
Activity
Show:
zhiqiang wang
June 11, 2018 at 1:08 AM
(edited)
Now its not an issue for me. My purpose was improving agl-service-bluetooth to reduce the work of application.
Matt Ranostay
June 9, 2018 at 6:05 AM
This still an issue for you?
Matt Ranostay
May 10, 2018 at 3:52 AM
@zhiqiang wang So looking in this and it as I remembered for the "connection" event. But the one workaround/solution you could do is listen to the "device_updated" event and see when you connected device disconnects.
Ideally of course "connection" event should report this but it would take quite a bit of reworking/rewriting of the binding as it stands now.
Matt Ranostay
May 10, 2018 at 3:32 AM
I'll look into this. But I'm pretty sure this is related to how the agl-service-bluetooth binding is written, and only handles disconnections from the host/DUT cleanly.
In homescreen-2017 I used agl-service-bluetooth's "subscribe" verb to subscribe bluetooth's connection status. when I connect or disconnect bluetooth device(phone) in settings screen, homescreen-2017 can received message as below:
[5,\"Bluetooth-Manager/connection\",{\"event\":\"Bluetooth-Manager\\/connection\",\"data\":{\"Status\":\"connected\",\"Address\":\"A4:9A:58:A5:FB:86\"},\"jtype\":\"afb-event\"}]
[5,\"Bluetooth-Manager/connection\",{\"event\":\"Bluetooth-Manager\\/connection\",\"data\":{\"Status\":\"disconnected\",\"Address\":\"A4:9A:58:A5:FB:86\"},\"jtype\":\"afb-event\"}]
But when I disconnect bluetooth connection from phone, homescreen-2017 can't recevice any message.I thought in this situation app should receive connection event.
board: renesas m3ulcb
bluetooth device: Bluetooth Dongle