-
-
Notifications
You must be signed in to change notification settings - Fork 891
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
preBegin Function #293
Comments
i know this is a little old, but in the development branch the first execution is in _begin(). |
Some of the examples request data from the controller in the begin-method. If transportInit() is called after begin the will fail. A preBegin might be a better option where sensor initializations can happen. |
Hey guys,
at the moment i am working on an sensor node with an MRFC522 RFID reader beside the NRF24 on the SPI Bus.
With Version 1.5.1 it was possible to run code before the radio init function ( gw.begin(); )so that you could do something like this to stop the rfid reader on the SPI Bus so that there where no interferences on the bus with the NRF Module:
In Version 1.6 you run the setup() function after the radio init in your _beginn function so that above mentioned code comes to late and the radio init fails.
Is it possible that you could implement something like the loop or setup function that comes before? So that we can do such thing before?
I would implement this by myself but my CFu is not very good.
// Initialize library and handle sketch functions like we want to
Regards
Florian
The text was updated successfully, but these errors were encountered: