Skip to content

Commit c2a03b9

Browse files
committed
change ifdef conditions
1 parent 9ada633 commit c2a03b9

File tree

4 files changed

+7
-5
lines changed

4 files changed

+7
-5
lines changed

src/ArduinoIoTCloud.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -170,10 +170,10 @@ class ArduinoIoTCloudClass {
170170
static void printConnectionStatus(ArduinoIoTConnectionStatus status);
171171
};
172172

173-
#if defined(ARDUINO_SAMD_MKRGSM1400) || defined(ARDUINO_SAMD_MKRWIFI1010) || defined(ARDUINO_SAMD_MKR1000) || defined(ARDUINO_SAMD_NANO_33_IOT)
173+
#ifdef HAS_TCP
174174
#include "ArduinoIoTCloudTCP.h"
175175

176-
#elif defined(ARDUINO_SAMD_MKRWAN1300) || defined(ARDUINO_SAMD_MKRWAN1310)
176+
#elif defined(HAS_LORA)
177177
#include "ArduinoIoTCloudLPWAN.h"
178178

179179
#endif

src/ArduinoIoTCloudLPWAN.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@
1414
software without disclosing the source code of your own applications. To purchase
1515
a commercial license, send an email to [email protected].
1616
*/
17-
18-
#if defined(ARDUINO_SAMD_MKRWAN1300) || defined(ARDUINO_SAMD_MKRWAN1310)
17+
#include "ArduinoIoTCloud_Defines.h"
18+
#ifdef HAS_LORA
1919

2020
#include<ArduinoIoTCloudLPWAN.h>
2121

src/ArduinoIoTCloudTCP.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,9 @@
1414
software without disclosing the source code of your own applications. To purchase
1515
a commercial license, send an email to [email protected].
1616
*/
17-
#if defined(ARDUINO_SAMD_MKRGSM1400) || defined(ARDUINO_SAMD_MKRWIFI1010) || defined(ARDUINO_SAMD_MKR1000) || defined(ARDUINO_SAMD_NANO_33_IOT)
17+
#include "ArduinoIoTCloud_Defines.h"
1818

19+
#ifdef HAS_TCP
1920
#include <ArduinoIoTCloudTCP.h>
2021
#ifdef BOARD_HAS_ECCX08
2122
#include "utility/ECCX08Cert.h"

src/ArduinoIoTCloud_Defines.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@
3131

3232
#if defined(ARDUINO_ESP8266_ESP12) || defined(ARDUINO_ARCH_ESP32) || defined(ESP8266)
3333
#define BOARD_ESP
34+
#define HAS_TCP
3435
#endif
3536

3637
#endif /* ARDUINO_IOT_CLOUD_DEFINES_H_ */

0 commit comments

Comments
 (0)