Hi this is not a PlatformIO Problem
I get
LoadProhibited: A load referenced a page mapped with an attribute that does not permit loads
epc1=0x40206849 in NTPClient::begin(int) at >C:\Users\ats37.platformio\lib\NTPClient/NTPClient.cpp:58
void NTPClient::begin(int port) {
this->_port = port;
this->_udp->begin(this->_port);
this->_udpSetup = true;
}
I don’t understand why void NTPClient::begin(int port) it is just in the setup Procedure
My Code where it’s causing the Problem The Setup is standard like in the example
The First time it works well but When I try to refresh I get the exception. Any clue.
time_t getTime()
{
timeClient.update();
#ifdef DEBUG_GetTime
Serial.print("----- ");
Serial.print(timeClient.getDay());
Serial.print(", ");
Serial.print(timeClient.getHours());
Serial.print(":");
Serial.print(timeClient.getMinutes());
Serial.print(":");
Serial.print(timeClient.getSeconds());
Serial.print(" ---- ");
Serial.print(timeClient.getFormattedTime());
Serial.print(" -------");
#endif
time_t now = timeClient.getEpochTime();
return now;
}