Closed xlfe closed 6 years ago
Ciao @xlfe is there any motivation why you did not include the helper in the ARDUINO interface dir (as the tcp or udp helpers of fred) considering that the helper depends on a custom arduino core?
No that makes sense too actually. I guess the only reason not to is that it doesn't run on generic Arduino - but if you want to move it there I have no objections
Another thing @xlfe why you include twice the helper both in PJON_Interfaces
and in the Strategy itself?
Would not have sense to just remove the inclusion from the PJON_Interfaces
file?
@xlfe about custom core, the "norm" we have developed is just to fit in ARDUINO interface all arduino compatible cores see: https://github.com/gioblu/PJON/blob/master/src/interfaces/ARDUINO/PJON_ARDUINO_Interface.h#L30
Sounds sensible - no objections from me at all
Consider that when compiling an ESPNOW sketch on ESP32, the interface used is ARDUINO, from where PJON takes all the system calls in the first place.
true
Thank you @xlfe for your clarifications, I will make the necessary changes.
Thank you @xlfe for your clarifications, I will make the necessary changes.
Thanks @gioblu - sorry for the added work!
@xlfe it is a pleasure no probs, I am still reviewing your contribution, one thing I have noticed is that you include here: https://github.com/gioblu/PJON/blob/master/src/interfaces/ARDUINO/ESPNOWHelper.h#L3
and here: https://github.com/gioblu/PJON/blob/master/src/strategies/ESPNOW/ESPNOW.h#L24 PJON
and PJONDefines
files? Shouldnt they be already available for you there?
@xlfe it is a pleasure no probs, I am still reviewing your contribution, one thing I have noticed is that you include here: https://github.com/gioblu/PJON/blob/master/src/interfaces/ARDUINO/ESPNOWHelper.h#L3 and here: https://github.com/gioblu/PJON/blob/master/src/strategies/ESPNOW/ESPNOW.h#L24
PJON
andPJONDefines
files? Shouldnt they be already available for you there?
Yes - removing the include from ESPNOW.h doesn't cause any problems
Good @xlfe thank you again for testing it, I will remove those :)
Otherwise I'm getting a compilation error for PJON :(
PJON_Interfaces.h :-