Skip to content

Commit c543360

Browse files
authored
Merge pull request #97 from pennam/unor4
Add UNO R4 WiFi support
2 parents 2c11a5b + ec456d0 commit c543360

File tree

3 files changed

+18
-1
lines changed

3 files changed

+18
-1
lines changed

.github/workflows/compile-examples.yml

+7
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,8 @@ jobs:
7070
platform-name: arduino:mbed_giga
7171
- fqbn: arduino:renesas_portenta:portenta_c33
7272
platform-name: arduino:renesas_portenta
73+
- fqbn: arduino:renesas_uno:unor4wifi
74+
platform-name: arduino:renesas_uno
7375

7476
# Make board type-specific customizations to the matrix jobs
7577
include:
@@ -91,6 +93,11 @@ jobs:
9193
platforms: |
9294
# Install Arduino Renesas portenta Boards via Boards Manager
9395
- name: arduino:renesas_portenta
96+
- board:
97+
platform-name: arduino:renesas_uno
98+
platforms: |
99+
# Install Arduino Renesas uno Boards via Boards Manager
100+
- name: arduino:renesas_uno
94101
- board:
95102
platform-name: esp8266:esp8266
96103
platforms: |

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,mbed_giga,renesas_portenta
9+
architectures=samd,esp32,esp8266,mbed,megaavr,mbed_nano,mbed_portenta,mbed_nicla,mbed_opta,mbed_giga,renesas_portenta,renesas_uno
1010
depends=Arduino_DebugUtils, WiFi101, WiFiNINA, MKRGSM, MKRNB, MKRWAN

src/Arduino_ConnectionHandler.h

+10
Original file line numberDiff line numberDiff line change
@@ -147,6 +147,16 @@
147147
#define WIFI_FIRMWARE_VERSION_REQUIRED WIFI_FIRMWARE_REQUIRED
148148
#endif
149149

150+
#if defined(ARDUINO_UNOR4_WIFI)
151+
#include <WiFiS3.h>
152+
153+
#define BOARD_HAS_WIFI
154+
#define NETWORK_HARDWARE_ERROR WL_NO_SHIELD
155+
#define NETWORK_IDLE_STATUS WL_IDLE_STATUS
156+
#define NETWORK_CONNECTED WL_CONNECTED
157+
#define WIFI_FIRMWARE_VERSION_REQUIRED WIFI_FIRMWARE_LATEST_VERSION
158+
#endif
159+
150160
/******************************************************************************
151161
INCLUDES
152162
******************************************************************************/

0 commit comments

Comments
 (0)