![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
LoRa Access Point 1.5.2018
Dependencies: mbed ds3231 SX1276Lib_LoRa_Access_Point
Diff: ESP8266.h
- Revision:
- 11:376bfcdda0d4
- Parent:
- 10:e62222c46ee9
--- a/ESP8266.h Thu Mar 28 09:55:48 2019 +0000 +++ b/ESP8266.h Sat May 08 16:23:46 2021 +0000 @@ -5,12 +5,12 @@ #include "RFM95W.h" #include "Board.h" #include "HC05.h" +//#include "RTC.h" //#include "SD.h" #define BUFFER_SIZE 1024 #define SETTING_SIZE 64 - class ESP8266 { private: @@ -27,9 +27,19 @@ volatile bool receiveResponse; volatile bool setServerIp; volatile bool setWifiSettings; - + + volatile bool actualizeTime; + int hour; + int minute; + int second; + int dayOfWeek; + int date; + int month; + int year; + void ClearBuffer(); void RxWifiInterrupt(); + void convert_time(); public: ESP8266(PinName tx, PinName rx, PinName reset); ESP8266(); @@ -41,6 +51,9 @@ void Test(); void CheckSettings(); void ConfirmReceivedAck(uint8_t from); + + void getServerDateTime(int *w, int *d, int *mo, int *y, int *h, int *m, int *s); + bool actualizeActualTime(); }; extern ESP8266 wifi;