This commit is contained in:
2021-03-01 11:16:54 +01:00
parent 991f2724a6
commit 6e73dccd66
5 changed files with 11 additions and 4 deletions

View File

@ -90,6 +90,7 @@ void networkSntpEngine(void *handle) {
if (sockState == SOCK_UDP) {
memset(&(localHandle->ntpMsg), 0, sizeof(localHandle->ntpMsg));
localHandle->ntpMsg.li_vn_mode = SEND_LI_VN_MODE;
localHandle->ntpMsg.xmt_l = 1;
sendto(SNTP_SOCK, (uint8_t*)(&(localHandle->ntpMsg)),
sizeof(localHandle->ntpMsg), localHandle->ntpAddr, NTP_PORT);
coloredMsg(LOG_BLUE, "nes, sent");
@ -209,6 +210,10 @@ int8_t networkUdpSend(char *hostname, uint16_t port, uint8_t *buf, uint16_t bufL
return 1;
}
bool isNetworkAvailable() {
return wizIsNetworkAvailable();
}
void networkImplInit() {
config = getConfig();
wizInit();