File tree 1 file changed +9
-2
lines changed
1 file changed +9
-2
lines changed Original file line number Diff line number Diff line change 57
57
#include < Ethernet.h>
58
58
#include < PortentaEthernet.h>
59
59
#include < GSM.h>
60
+ #include < Arduino_Cellular.h>
60
61
61
62
#define BOARD_HAS_WIFI
62
63
#define BOARD_HAS_ETHERNET
63
64
#define BOARD_HAS_CATM1_NBIOT
65
+ #define BOARD_HAS_CELLULAR
64
66
#define BOARD_HAS_PORTENTA_CATM1_NBIOT_SHIELD
65
67
#define BOARD_HAS_PORTENTA_VISION_SHIELD_ETHERNET
66
68
#define NETWORK_HARDWARE_ERROR WL_NO_SHIELD
150
152
#if defined(ARDUINO_ARCH_ESP32)
151
153
#include < WiFi.h>
152
154
#include < WiFiUdp.h>
153
-
155
+
154
156
#define BOARD_HAS_WIFI
155
157
#define NETWORK_HARDWARE_ERROR WL_NO_SHIELD
156
158
#define NETWORK_IDLE_STATUS WL_IDLE_STATUS
@@ -201,7 +203,8 @@ enum class NetworkAdapter {
201
203
NB,
202
204
GSM,
203
205
LORA,
204
- CATM1
206
+ CATM1,
207
+ CELL
205
208
};
206
209
207
210
typedef void (*OnNetworkEventCallback)();
@@ -304,4 +307,8 @@ class ConnectionHandler {
304
307
#include " Arduino_CatM1ConnectionHandler.h"
305
308
#endif
306
309
310
+ #if defined(BOARD_HAS_CELLULAR)
311
+ #include " Arduino_CellularConnectionHandler.h"
312
+ #endif
313
+
307
314
#endif /* CONNECTION_HANDLER_H_ */
You can’t perform that action at this time.
0 commit comments