File tree Expand file tree Collapse file tree 2 files changed +3
-1
lines changed
components/wifi/esp8266-driver Expand file tree Collapse file tree 2 files changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -715,13 +715,15 @@ nsapi_error_t ESP8266Interface::_init(void)
715
715
if (!_esp.startup (ESP8266::WIFIMODE_STATION)) {
716
716
return NSAPI_ERROR_DEVICE_ERROR;
717
717
}
718
+ #if MBED_CONF_ESP8266_SNTP_ENABLE
718
719
if (!_esp.set_sntp_config (MBED_CONF_ESP8266_SNTP_ENABLE,
719
720
MBED_CONF_ESP8266_SNTP_TIMEZONE,
720
721
MBED_CONF_ESP8266_SNTP_SERVER0,
721
722
MBED_CONF_ESP8266_SNTP_SERVER1,
722
723
MBED_CONF_ESP8266_SNTP_SERVER2)) {
723
724
return NSAPI_ERROR_DEVICE_ERROR;
724
725
}
726
+ #endif
725
727
_initialized = true ;
726
728
}
727
729
return NSAPI_ERROR_OK;
Original file line number Diff line number Diff line change 71
71
"value" : false
72
72
},
73
73
"sntp-enable" : {
74
- "help" : " Enable SNTP. This allows application to use get_sntp_time()" ,
74
+ "help" : " Enable SNTP. This allows application to use get_sntp_time(). Only available from ESP8266 AT v1.5. " ,
75
75
"value" : false
76
76
},
77
77
"sntp-timezone" : {
You can’t perform that action at this time.
0 commit comments