mirror of
https://github.com/richonguzman/LoRa_APRS_iGate.git
synced 2026-03-16 02:04:45 +01:00
finalbeta2
This commit is contained in:
parent
1e2d8410d7
commit
83898af7af
|
|
@ -48,7 +48,7 @@ void APRS_IS_connect(){
|
|||
}
|
||||
}
|
||||
|
||||
String GetTime() {
|
||||
String getDateTime() {
|
||||
struct tm timeinfo;
|
||||
String currentTime, year, month, day, hour, minute, seconds;
|
||||
if(!getLocalTime(&timeinfo)){
|
||||
|
|
@ -72,7 +72,7 @@ void setup() {
|
|||
setup_wifi();
|
||||
btStop();
|
||||
configTime(gmtOffset_sec, daylightOffset_sec, ntpServer);
|
||||
GetTime();
|
||||
getDateTime();
|
||||
Serial.println("Starting Weather Report APRS\n");
|
||||
}
|
||||
|
||||
|
|
@ -126,7 +126,7 @@ void loop() {
|
|||
espClient.write(ackMessage.c_str());
|
||||
delay(500);
|
||||
}
|
||||
currentDate = GetTime();
|
||||
currentDate = getDateTime();
|
||||
answerMessage = "WRCLP>APLG01,TCPIP*,qAC,CHILE::" + questioner + ":" + "hola, " + questioner + " " + currentDate + "\n";
|
||||
Serial.print("-------> " + answerMessage);
|
||||
espClient.write(answerMessage.c_str());
|
||||
|
|
|
|||
Loading…
Reference in a new issue