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)
715715 if (!_esp.startup (ESP8266::WIFIMODE_STATION)) {
716716 return NSAPI_ERROR_DEVICE_ERROR;
717717 }
718+ #if MBED_CONF_ESP8266_SNTP_ENABLE
718719 if (!_esp.set_sntp_config (MBED_CONF_ESP8266_SNTP_ENABLE,
719720 MBED_CONF_ESP8266_SNTP_TIMEZONE,
720721 MBED_CONF_ESP8266_SNTP_SERVER0,
721722 MBED_CONF_ESP8266_SNTP_SERVER1,
722723 MBED_CONF_ESP8266_SNTP_SERVER2)) {
723724 return NSAPI_ERROR_DEVICE_ERROR;
724725 }
726+ #endif
725727 _initialized = true ;
726728 }
727729 return NSAPI_ERROR_OK;
Original file line number Diff line number Diff line change 7171 "value" : false
7272 },
7373 "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. This driver supports v1.7 and higher. " ,
7575 "value" : false
7676 },
7777 "sntp-timezone" : {
You can’t perform that action at this time.
0 commit comments