Skip to content

Commit

Permalink
Make Portenta a LoRa device if Arduino_LoRaConnectionHandler.h is inc…
Browse files Browse the repository at this point in the history
…luded in sketch file
  • Loading branch information
pennam committed Nov 16, 2022
1 parent 9c6d5d7 commit 0c8f9ed
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions src/AIoTC_Config.h
Original file line number Diff line number Diff line change
Expand Up @@ -115,12 +115,20 @@
#endif

#if defined(ARDUINO_SAMD_MKRGSM1400) || defined(ARDUINO_SAMD_MKR1000) || \
defined(ARDUINO_SAMD_MKRNB1500) || defined(ARDUINO_PORTENTA_H7_M7) || \
defined (ARDUINO_NANO_RP2040_CONNECT)
defined(ARDUINO_SAMD_MKRNB1500) || defined (ARDUINO_NANO_RP2040_CONNECT)
#define BOARD_HAS_ECCX08
#define HAS_TCP
#endif

#if defined(ARDUINO_PORTENTA_H7_M7)
#if __has_include("Arduino_LoRaConnectionHandler.h")
#define HAS_LORA
#else
#define BOARD_HAS_ECCX08
#define HAS_TCP
#endif
#endif

#if defined(ARDUINO_NICLA_VISION)
#define BOARD_HAS_SE050
#define HAS_TCP
Expand Down

0 comments on commit 0c8f9ed

Please sign in to comment.