Skip to content

Commit 418f3d6

Browse files
committed
Add Cellular support to PORTENTA_H7 through Portenta Mid Carrier
1 parent 1e88a7c commit 418f3d6

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

src/Arduino_ConnectionHandler.h

+9-2
Original file line numberDiff line numberDiff line change
@@ -57,10 +57,12 @@
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
@@ -150,7 +152,7 @@
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

207210
typedef 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_ */

0 commit comments

Comments
 (0)