Skip to content

Commit f56bab7

Browse files
committed
Add support for opta board
1 parent 8afb854 commit f56bab7

File tree

2 files changed

+14
-1
lines changed

2 files changed

+14
-1
lines changed

library.properties

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,5 +6,5 @@ sentence=Arduino Library for network connection management (WiFi, GSM, NB, [Ethe
66
paragraph=Originally part of ArduinoIoTCloud
77
category=Communication
88
url=https://github.com/arduino-libraries/Arduino_ConnectionHandler
9-
architectures=samd,esp32,esp8266,mbed,megaavr,mbed_nano,mbed_portenta,mbed_nicla
9+
architectures=samd,esp32,esp8266,mbed,megaavr,mbed_nano,mbed_portenta,mbed_nicla,mbed_opta
1010
depends=Arduino_DebugUtils, WiFi101, WiFiNINA, MKRGSM, MKRNB, MKRWAN

src/Arduino_ConnectionHandler.h

+13
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,19 @@
6767
#define NETWORK_CONNECTED WL_CONNECTED
6868
#endif
6969

70+
#if defined(ARDUINO_OPTA)
71+
#include <WiFi.h>
72+
#include <WiFiUdp.h>
73+
#include <Ethernet.h>
74+
#include <PortentaEthernet.h>
75+
76+
#define BOARD_HAS_WIFI
77+
#define BOARD_HAS_ETHERNET
78+
#define NETWORK_HARDWARE_ERROR WL_NO_SHIELD
79+
#define NETWORK_IDLE_STATUS WL_IDLE_STATUS
80+
#define NETWORK_CONNECTED WL_CONNECTED
81+
#endif
82+
7083
#ifdef ARDUINO_SAMD_MKRGSM1400
7184
#include <MKRGSM.h>
7285
#define BOARD_HAS_GSM

0 commit comments

Comments
 (0)