Closed paidforby closed 3 years ago
I actually just remembered the solution, and the actual cause of this problem. @robgil used main.cpp
in both the receiver and sender examples, this is not allowed when compiling a local copy of a library in arduino. It has something to do with the fact that the arduino framework creates its own main.cpp, I opened an issue about this same problem with the build system makeESParduino some months ago, https://github.com/plerup/makeEspArduino/issues/134. Still wish there was just a way to ignore that examples directory, but I haven't found a straightforward way to do that with platformio.
Oooo ok. That makes sense. I can update the samples.
On Sun, Sep 20, 2020, 11:50 AM grant_____ notifications@github.com wrote:
Closed #19 https://github.com/sudomesh/LoRaLayer2/issues/19 via efaa3fa https://github.com/sudomesh/LoRaLayer2/commit/efaa3fa73e3c8f6a7c66e335873c0bd81cc865e3 .
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/sudomesh/LoRaLayer2/issues/19#event-3786191137, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAJTC4YWTQ6B25GSDV67FYLSGYQCVANCNFSM4RTWGWNQ .
I think I already took care of the problem. I don't think your platformio.ini files will care that I renamed the main files to main.ino
, though, admittedly, I have yet to test your example code.
One small issue generated by recent pull request #18. It seems to have broken my ability to link using platformio when I have a copy of LoRaLayer2 in my
lib
directory, but I am building using the copy made by platformio.ini in the.pio
directory. This is a very minor issue and only has a small impact on my dev cycle. It should go unnoticed by anyone who isn't actively developing the LL2 library.The error generated is as follows,
It looks like is doesn't like the mulitple platformio projects in the examples directory. I'm not sure how to fix this or if I even care enough to fix it, but I figured I'd post it here in case someone comes across this problem and is more inclined to solve it.