Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OnBluetoothDisconnected event in radio module #675

Open
niutech opened this issue Mar 30, 2020 · 2 comments
Open

OnBluetoothDisconnected event in radio module #675

niutech opened this issue Mar 30, 2020 · 2 comments

Comments

@niutech
Copy link

niutech commented Mar 30, 2020

MakeCode for Micro:bit supports the OnBluetoothDisconnected event. Can the same be supported in Radio module, e.g. radio.on_disconnected(callback)?
Thanks!

@kopp
Copy link

kopp commented Mar 30, 2020

as far as I understand, the radio module does not have the concept of connected or disconnected, but just of on and off.

As far as I understand from the code and the discussion in the pull request introducing the feature MakeCode and MicroPython use different software layers to get Radio working (MakeCode uses the DAL while MicroPython does not), so I would expect different features to be available in those two...

@2bndy5
Copy link

2bndy5 commented Aug 7, 2021

The radio module doesn't use a pairing/bonding mechanism like Bluetooth does. Additionally, I don't see the underlying implementation using an auto-ACK feature, so there is no way to know if there is a connection at all. If there was an auto-ACK feature, it would negate using the term "group", since 1 transmission could be acknowledged by only 1 receiver.

Simply put, this request cannot be satisfied in any way.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants