-
Notifications
You must be signed in to change notification settings - Fork 75
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
Radio Notifications API missing functionality? #121
Comments
it make sense to register the callback at the point you start the process but I don't think that it belong to the Maybe we can replicate the ble.gap().startRadioNotification(someHandleFunction); |
yes, I'm happy with setting up a callback along with startRadioNotification() |
I am happy with the |
Yes, it would be a great addition Andres, API has to be symmetrical. Start/Stop is easy to understand. |
ARM Internal Ref: IOTSFW-1361 |
Recently, the Radio notification API was modified to NOT initiate radio notification when a callback is registered using onRadioNotification. This conforms to the documentation, which now enforces applications to execute something like the following to get Radio Notifications started:
Nevertheless, the handler only really gets called when there is radio activity, such as after calling
ble.gap().startAdvertising()
. Wouldn't it be best if the radio notification is initiated inside theonRadioNotification()
call and just modify the documentation to describe this behaviour? After all, you only register a callback because you actually want to get the callback.Alternatively, if you want to not change the documentation, wouldnt it make sense to have a
stopRadioNotification()
API that allows you to start and stop the radio notification events whenever you want? i.e. even during the advertising process.The text was updated successfully, but these errors were encountered: