mirror of
https://github.com/timmbogner/Farm-Data-Relay-System
synced 2024-11-08 13:10:29 +00:00
FDRS nodes should not send out time notifications
This commit is contained in:
parent
7ea7c46e69
commit
0a830de2dc
@ -280,6 +280,7 @@ void checkDST() {
|
|||||||
|
|
||||||
// Periodically send time to ESP-NOW or LoRa nodes associated with this gateway/controller
|
// Periodically send time to ESP-NOW or LoRa nodes associated with this gateway/controller
|
||||||
void sendTime() {
|
void sendTime() {
|
||||||
|
#ifdef FDRS_GATEWAY // Nodes do not send out time
|
||||||
if(validTime()) { // Only send time if it is valid
|
if(validTime()) { // Only send time if it is valid
|
||||||
DBG1("Sending out time");
|
DBG1("Sending out time");
|
||||||
#if defined(USE_WIFI) || defined(USE_ETHERNET)
|
#if defined(USE_WIFI) || defined(USE_ETHERNET)
|
||||||
@ -288,6 +289,7 @@ void sendTime() {
|
|||||||
sendTimeLoRa();
|
sendTimeLoRa();
|
||||||
sendTimeESPNow();
|
sendTimeESPNow();
|
||||||
}
|
}
|
||||||
|
#endif // FDRS_GATEWAY
|
||||||
}
|
}
|
||||||
|
|
||||||
// time parameter is in Unix Time format UTC time zone
|
// time parameter is in Unix Time format UTC time zone
|
||||||
|
Loading…
Reference in New Issue
Block a user