File tree 4 files changed +17
-20
lines changed
4 files changed +17
-20
lines changed Original file line number Diff line number Diff line change 18
18
#ifndef ARDUINO_AIOTC_CONFIG_H_
19
19
#define ARDUINO_AIOTC_CONFIG_H_
20
20
21
+ #if defined __has_include
22
+ #if __has_include (< Notecard .h > )
23
+ #define USE_NOTECARD
24
+ #endif
25
+ #endif
26
+
21
27
#include <ArduinoECCX08Config.h>
22
28
23
29
/******************************************************************************
Original file line number Diff line number Diff line change @@ -211,7 +211,7 @@ ArduinoIoTCloudNotecard::State ArduinoIoTCloudNotecard::handle_ConfigureNotehub(
211
211
#if defined(BOARD_HAS_SECRET_KEY)
212
212
if (reinterpret_cast <NotecardConnectionHandler *>(_connection)->syncSecretDeviceKey (_secret_device_key)) {
213
213
DEBUG_WARNING (" ArduinoIoTCloudNotecard::%s failed to set secret device key" , __FUNCTION__);
214
- DEBUG_WARNING (" You may manually enter the secret key on Notehub as a device level environment variable named `arduino_iot_cloud_secret_key `" );
214
+ DEBUG_WARNING (" You may manually enter the secret key on Notehub as a device level environment variable named `arduino_iot_cloud_secret_device_key `" );
215
215
}
216
216
#endif
217
217
Original file line number Diff line number Diff line change 19
19
* INCLUDE
20
20
**************************************************************************************/
21
21
22
+ #include " AIoTC_Config.h"
23
+
22
24
#if defined(USE_NOTECARD) || defined(ARDUINO_ARCH_ESP8266)
23
25
24
26
#include < Arduino.h>
Original file line number Diff line number Diff line change 19
19
* INCLUDE
20
20
**************************************************************************************/
21
21
22
- #include < AIoTC_Config.h>
23
22
24
23
#include < time.h>
25
- # include " TimeService.h "
26
- #include " NTPUtils .h"
24
+
25
+ #include " AIoTC_Config .h"
27
26
#include " AIoTC_Const.h"
27
+ #include " NTPUtils.h"
28
+ #include " TimeService.h"
28
29
29
- #ifdef USE_NOTECARD
30
+ #if defined( USE_NOTECARD) || defined(ARDUINO_ARCH_ESP8266)
30
31
#include " RTCMillis.h"
31
- #else
32
-
33
- #ifdef ARDUINO_ARCH_SAMD
32
+ #elif defined(ARDUINO_ARCH_SAMD)
34
33
#include < RTCZero.h>
35
- #endif
36
-
37
- #ifdef ARDUINO_ARCH_MBED
34
+ #elif defined(ARDUINO_ARCH_MBED)
38
35
#include < mbed_rtc_time.h>
39
- #endif
40
-
41
- #ifdef ARDUINO_ARCH_ESP8266
42
- #include " RTCMillis.h"
43
- #endif
44
-
45
- #ifdef ARDUINO_ARCH_RENESAS
36
+ #elif defined(ARDUINO_ARCH_RENESAS)
46
37
#include " RTC.h"
47
38
#endif
48
39
49
- #endif /* USE_NOTECARD */
50
-
51
40
/* *************************************************************************************
52
41
* GLOBAL VARIABLES
53
42
**************************************************************************************/
You can’t perform that action at this time.
0 commit comments