Closed aviateur17 closed 1 year ago
Ope, yep it is time to pull the 'dev' branch to main... Does the gateway in 'dev' branch work okay in PlatformIO? It's about time I went down that path myself...
Ope, yep it is time to pull the 'dev' branch to main... Does the gateway in 'dev' branch work okay in PlatformIO? It's about time I went down that path myself...
Yes, gateway code in dev branch works as far as receiving LoRa is concerned. One question though, and I can make this a different issue if need be, but why are we using an external NTP library when ESP supports NTP via native libraries (https://docs.espressif.com/projects/esp-idf/en/latest/esp32/api-reference/system/system_time.html?highlight=ntp#)? Seems this project is geared towards ESP8266 and ESP32 anyways?
Is it native on 8266 as well? @thefeiter Might want to look into this.
Is it native on 8266 as well? @thefeiter Might want to look into this.
Seems to use the sntp library and time.h
LoRa gateway receive resolved in dev branch to be merged in main.
Is it native on 8266 as well? @thefeiter Might want to look into this.
Seems like it is.
why are we using an external NTP library when ESP supports NTP via native libraries
Main reason is: I didn't know about the native libraries, since they didn't show up on my search for NTP time sync for esps.
they didn't show up on my search for NTP time sync for esps.
This is the struggle of working with a new and ever-changing tech I guess. When I started this project I thought that ESP-NOW was incapable of broadcast packets, thanks to a top Google result that was outdated.
Couldn't get LoRa to work in the gateway code in the main branch until I added the lines below to setup() in the gateway code...
LoRa.setPins(FDRS_SS, FDRS_RST, FDRS_DIO0); LoRa.begin(FDRS_BAND);
Note I am using PlatformIO so I had to rename the defines in order for the code to compile.