File tree Expand file tree Collapse file tree 1 file changed +9
-2
lines changed
Expand file tree Collapse file tree 1 file changed +9
-2
lines changed Original file line number Diff line number Diff line change 5757 #include < Ethernet.h>
5858 #include < PortentaEthernet.h>
5959 #include < GSM.h>
60+ #include < Arduino_Cellular.h>
6061
6162 #define BOARD_HAS_WIFI
6263 #define BOARD_HAS_ETHERNET
6364 #define BOARD_HAS_CATM1_NBIOT
65+ #define BOARD_HAS_CELLULAR
6466 #define BOARD_HAS_PORTENTA_CATM1_NBIOT_SHIELD
6567 #define BOARD_HAS_PORTENTA_VISION_SHIELD_ETHERNET
6668 #define NETWORK_HARDWARE_ERROR WL_NO_SHIELD
150152#if defined(ARDUINO_ARCH_ESP32)
151153 #include < WiFi.h>
152154 #include < WiFiUdp.h>
153-
155+
154156 #define BOARD_HAS_WIFI
155157 #define NETWORK_HARDWARE_ERROR WL_NO_SHIELD
156158 #define NETWORK_IDLE_STATUS WL_IDLE_STATUS
@@ -201,7 +203,8 @@ enum class NetworkAdapter {
201203 NB,
202204 GSM,
203205 LORA,
204- CATM1
206+ CATM1,
207+ CELL
205208};
206209
207210typedef void (*OnNetworkEventCallback)();
@@ -304,4 +307,8 @@ class ConnectionHandler {
304307 #include " Arduino_CatM1ConnectionHandler.h"
305308#endif
306309
310+ #if defined(BOARD_HAS_CELLULAR)
311+ #include " Arduino_CellularConnectionHandler.h"
312+ #endif
313+
307314#endif /* CONNECTION_HANDLER_H_ */
You can’t perform that action at this time.
0 commit comments