diff --git a/wifi.ino b/wifi.ino index 9ff2a70..9e6dfa9 100644 --- a/wifi.ino +++ b/wifi.ino @@ -1,7 +1,7 @@ #include #include -const char *ssid = "miura2g"; +const char *ssid = "miura2g"; // 802.11b/g (2.4GHz)only. 5GHz is not supported. const char *password = "jikken2022"; const char *ntpserver = "ntp.nict.jp"; @@ -48,7 +48,7 @@ struct tm localTime; void ntp_setup() { - configTime(9 * 3600, 0, ntpserver); + configTime(9 * 3600, 0, ntpserver); // NTPサーバからLocalTimeへの時刻同期 delay(1000); @@ -62,9 +62,10 @@ } M5.Beep.tone(2000); - setRTCfromLT(localTime); + setRTCfromLT(localTime); //LocalTimeからRTCへの時刻同期 } +// LocalTimeからRTCへの時刻同期 void setRTCfromLT(struct tm lt) { RTC_DateTypeDef DateStruct; DateStruct.Year = lt.tm_year + 1900;