Skip to content
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

unable to compile ... #233

Open
urs8000 opened this issue Aug 28, 2024 · 2 comments
Open

unable to compile ... #233

urs8000 opened this issue Aug 28, 2024 · 2 comments

Comments

@urs8000
Copy link

urs8000 commented Aug 28, 2024

in case of missing <sys/time.h> board selected: Feather M0 as a sensor which does not use time
the above mentioned library is only valid for ESP32
why don't you use an universal time library for that functions?
e.g. Time with TimeLib.h ???

@timmbogner
Copy link
Owner

Hi @urs8000,
There are issues with AVR boards not having the sys/time.h file, but (to my knowledge) it should be present for SAMD and other boards/chips with time functionality. I am testing the 'LoRa_Sensor' sketch under the Adafruit Feather M0 (SAMD21) definition and it compiles successfully. Let me know if your setup is different.

@urs8000
Copy link
Author

urs8000 commented Sep 1, 2024

hello @timmbogner
thank for your answer
I installed FDRS from scratch and could compile your unmodified example LoRa_Sensor without error (only some notes & warnings)
as soon as I activate DGB_Level 1 or 2 I get:
In file included from e:_development\Arduino\libraries\Farm-Data-Relay-System\src/fdrs_node.h:40,
from E:_development\Arduino\libraries\Farm-Data-Relay-System\examples\LoRa_Sensor\LoRa_Sensor.ino:10:
e:_development\Arduino\libraries\Farm-Data-Relay-System\src/fdrs_time.h: In function 'void adjTimeforNetDelay(time_t)':
e:_development\Arduino\libraries\Farm-Data-Relay-System\src/fdrs_time.h:391:45: error: call of overloaded 'String(time_t&)' is ambiguous
391 | DBG1("Time adj by " + String(newOffset) + " secs");

at the end I could compile HELTEC_LoRa_32(V2), Feather_M0(SAMD21)_LoRa and other ESP based controllers
but NOT ANY ARM based e.g. MoteinoMEGA(-USB)

to overcome this problems I've used a save library bundle dated of 26/02/2024 to compile onla the MoteinoMEGA-sensor

it would be great if you could EXCLUDE timeinformation from any sensor. that's a function one (best MQTT) of the gateways should fullfill.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants