File tree 4 files changed +20
-0
lines changed
4 files changed +20
-0
lines changed Original file line number Diff line number Diff line change 19
19
* INCLUDE
20
20
**************************************************************************************/
21
21
22
+ #include " ../ArduinoIoTCloud_Defines.h"
23
+ #ifndef HAS_LORA
24
+
22
25
#include " NTPUtils.h"
23
26
#include " Arduino.h"
24
27
@@ -78,3 +81,5 @@ void NTPUtils::sendNTPpacket(UDP & udp)
78
81
udp.write (ntp_packet_buf, NTP_PACKET_SIZE);
79
82
udp.endPacket ();
80
83
}
84
+
85
+ #endif /* #ifndef HAS_LORA */
Original file line number Diff line number Diff line change 18
18
#ifndef __NTP_UTILS__
19
19
#define __NTP_UTILS__
20
20
21
+ #include " ../ArduinoIoTCloud_Defines.h"
22
+ #ifndef HAS_LORA
23
+
21
24
/*
22
25
This Utility Class is derived from the example code found here https://www.arduino.cc/en/Tutorial/UdpNTPClient
23
26
For more information on NTP (Network Time Protocol) you can refer to this Wikipedia article https://en.wikipedia.org/wiki/Network_Time_Protocol
@@ -51,4 +54,6 @@ class NTPUtils
51
54
52
55
};
53
56
57
+ #endif /* #ifndef HAS_LORA */
58
+
54
59
#endif
Original file line number Diff line number Diff line change 19
19
* INCLUDE
20
20
**************************************************************************************/
21
21
22
+ #include " ../ArduinoIoTCloud_Defines.h"
23
+ #ifndef HAS_LORA
24
+
22
25
#include " TimeService.h"
23
26
24
27
#include < time.h>
@@ -122,3 +125,5 @@ time_t cvt_time(char const * time)
122
125
123
126
return mktime (&t);
124
127
}
128
+
129
+ #endif /* #ifndef HAS_LORA */
Original file line number Diff line number Diff line change 22
22
* INCLUDE
23
23
**************************************************************************************/
24
24
25
+ #include " ../ArduinoIoTCloud_Defines.h"
26
+ #ifndef HAS_LORA
27
+
25
28
#include < Arduino_ConnectionHandler.h>
26
29
27
30
/* *************************************************************************************
@@ -47,4 +50,6 @@ class TimeService
47
50
48
51
};
49
52
53
+ #endif /* #ifndef HAS_LORA */
54
+
50
55
#endif /* ARDUINO_IOT_CLOUD_TIME_SERVICE_H_ */
You can’t perform that action at this time.
0 commit comments