Skip to content

Commit e5346b0

Browse files
authored
Merge pull request #91 from arduino-libraries/giga
Add support for GIGA
2 parents 0140c5f + 51a8c8c commit e5346b0

File tree

3 files changed

+13
-1
lines changed

3 files changed

+13
-1
lines changed

.github/workflows/compile-examples.yml

+2
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,8 @@ jobs:
6666
platform-name: arduino:mbed_nicla
6767
- fqbn: arduino:mbed_opta:opta
6868
platform-name: arduino:mbed_opta
69+
- fqbn: arduino:mbed_giga:giga
70+
platform-name: arduino:mbed_giga
6971

7072
# Make board type-specific customizations to the matrix jobs
7173
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,mbed_opta
9+
architectures=samd,esp32,esp8266,mbed,megaavr,mbed_nano,mbed_portenta,mbed_nicla,mbed_opta,mbed_giga
1010
depends=Arduino_DebugUtils, WiFi101, WiFiNINA, MKRGSM, MKRNB, MKRWAN

src/Arduino_ConnectionHandler.h

+10
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,16 @@
8080
#define NETWORK_CONNECTED WL_CONNECTED
8181
#endif
8282

83+
#if defined(ARDUINO_GIGA)
84+
#include <WiFi.h>
85+
#include <WiFiUdp.h>
86+
87+
#define BOARD_HAS_WIFI
88+
#define NETWORK_HARDWARE_ERROR WL_NO_SHIELD
89+
#define NETWORK_IDLE_STATUS WL_IDLE_STATUS
90+
#define NETWORK_CONNECTED WL_CONNECTED
91+
#endif
92+
8393
#ifdef ARDUINO_SAMD_MKRGSM1400
8494
#include <MKRGSM.h>
8595
#define BOARD_HAS_GSM

0 commit comments

Comments
 (0)