-
Notifications
You must be signed in to change notification settings - Fork 180
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
[RFC] add a bunch of hackish (but working) observer role functions #155
base: master
Are you sure you want to change the base?
Conversation
Hey @floe, Thanks for taking the time to submit this PR! For compatibility reasons, I'd prefer to keep this library peripheral only. However, moving forward it would be great to great a dual central and peripheral mode library for the nRF51/52 based on the CurieBLE API: https://github.com/01org/corelibs-arduino101/tree/master/libraries/CurieBLE Thoughts? I don't have time to start this at the moment though ... |
Ah, didn't know about CurieBLE yet, I'll have a look. For the moment, I'll probably go with my hackish-but-works solution... no time for a proper solution, either ;-) BTW, PR #120 is related in terms of API, isn't it? |
P.S. The alternative would be to create a dedicated fork of your library that only supports the nRF5x series. Would probably be less work than rebuilding everything to fit the CurieBLE API? |
Yes, that's a good way to start. We can always split it out into a new repo later. |
Came back to this after a couple of months, PR is now in a state where it's working fine for my specific use case. My suggestion would be to review this under the assumption that we'll get rid of the nRF8001 support sooner or later. |
No plans to remove it at this time :) |
Well, removing is probably too harsh, but how about splitting your library into a legacy branch that still supports the nRF8001, and a new branch that supports nRF51/52? |
New branch sounds ok short term for development. However, to make it compatible with the Arduino IDE's library manager a new repo would need to be created. |
hi @floe can you provide the example of observer role in you master branch? |
@cheeta1 sure, no problem, see |
@sandeepmistry if I rename my fork to, let's say, |
@floe works for me |
Amazing library, saved me a lot of work when trying to get the BBC micro:bit up and running for a student. Thanks!
That being said, I'm currently looking into broadcast-based mesh applications, and I need observer support for these (not a full-scale central role, but at least receiving advertisements). I hacked together a couple of control functions and wanted your opinion on
uint8_t* getScanResult()
method that's supposed to be called afterpoll()
and will return the most recent result, or NULL.Best, Florian