changes
This commit is contained in:
@ -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();
|
||||
|
Reference in New Issue
Block a user