Adding the ESP32 with NTP component introduces a lot of compilation errors. With just Initialise called...
timeinfo not found is the main issue..
../main/esp-project.c: In function 'FCD_04251_RTC_ESP32_NTP1__GetMins':
../main/esp-project.c:455:16: error: 'timeinfo' undeclared (first use in this function); did you mean 'fminf'?
return (FCR_RETVAL);
^~~~~~
fminf
../main/esp-project.c: In function 'FCD_04251_RTC_ESP32_NTP1__GetTimeString':
../main/esp-project.c:488:15: error: 'timeinfo' undeclared (first use in this function); did you mean 'fminf'?
^
fminf
../main/esp-project.c: In function 'FCD_04251_RTC_ESP32_NTP1__SetDate':
../main/esp-project.c:580:3: error: 'timeinfo' undeclared (first use in this function); did you mean 'fminf'?
- I see from another example that I need to add a timeinfo in supplementary code - which is easy enough.
The sample above opens as a 'text' listing in Edge (- so I can copy and save, but still odd and a little disconcerting?) I see this uses the supplementary code too:-)
Just starting to explore the ESP and so far so good. Minor issue in getting the toolchain to work but all good and flash test worked perfectly. Downloading Ben's ESP_Config_WiFi to allow me to set a specific SSID and Password worked a treat too.
Following on from that I thought it would be a good idea to try and sync the ESP RTC with a timeserver which lead me to this thread. However in the Wiki page Ben links to above, when you click on the example file it doesn't download a file, instead it opens up a page displaying code.