Skip to content

Commit 1ff3ac8

Browse files
authored
Merge pull request #87 from pennam/opta
Add support for opta board
2 parents 980f096 + 3c2c461 commit 1ff3ac8

File tree

3 files changed

+16
-1
lines changed

3 files changed

+16
-1
lines changed

.github/workflows/compile-examples.yml

+2
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,8 @@ jobs:
6464
platform-name: arduino:mbed_nano
6565
- fqbn: arduino:mbed_nicla:nicla_vision
6666
platform-name: arduino:mbed_nicla
67+
- fqbn: arduino:mbed_opta:opta
68+
platform-name: arduino:mbed_opta
6769

6870
# Make board type-specific customizations to the matrix jobs
6971
include:

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)