// lwipopts.h#define SNTP_STARTUP_DELAY 1 #define SNTP_STARTUP_DELAY_FUNC (4000 + (rand() & 2047)) #define SNTP_SET_SYSTEM_TIME(s) myfunc(s) sntp_setserver(0, &sntp_svr); sntp_init();