LoRa Access Point 1.5.2018
Dependencies: mbed ds3231 SX1276Lib_LoRa_Access_Point
Diff: ESP8266.cpp
- Revision:
- 10:e62222c46ee9
- Parent:
- 8:5d99fbf255d6
- Child:
- 11:376bfcdda0d4
diff -r 28e272b6b018 -r e62222c46ee9 ESP8266.cpp --- a/ESP8266.cpp Mon Mar 25 19:21:52 2019 +0000 +++ b/ESP8266.cpp Thu Mar 28 09:55:48 2019 +0000 @@ -10,7 +10,7 @@ const char* WIFI_ALIVE_RESPONSE = "~~LoRa Gateway~~\r\n"; const char* DELIMITER=":"; - +extern time_t epoch_time; ESP8266 wifi(WIFI_TX, WIFI_RX, WIFI_RST); ESP8266::ESP8266(PinName tx, PinName rx, PinName reset) @@ -132,6 +132,8 @@ void ESP8266::SendMessage(char message[]) { +// pc.printf("%.19s ", ctime(&epoch_time)); + pc.printf("%s",actual_time); pc.printf("%s",message); wifiUart.printf("%s",message); };