UNO R4 WiFi Network Examples

Discover examples compatible with the WiFi library included in the UNO R4 Board Package.

The Arduino UNO R4 WiFi has a built in ESP32-S3 module that enables you to connect to Wi-Fi® networks, and perform network operations. Protocols including HTTPS, MQTT, UDP are tested and supported, and in this article, you will find a number of examples that will get you started.

Wi-Fi® support is enabled via the built-in

WiFiS3
library that is shipped with the Arduino UNO R4 Board Package. Installing the Board Package automatically installs the
WiFiS3
library.

The easiest way to connect your board to the Internet is via the Arduino Cloud platform. Here you can configure, program, monitor and synchronize your devices without having to write any networking code.

Hardware & Software Needed

Examples

Examples listed in this section have been tested and verified to work. Most examples require you to input the

SSID
and
PASSWORD
for your local Wi-Fi® network. As a standard practice, in all of our examples, we store this in a separate header file (called
arduino_secrets.h
).

You will need to create this file, or remove the

#include "arduino_secrets.h"
file at the top of each example. The file should contain:

1//arduino_secrets.h header file
2#define SECRET_SSID "yournetwork"
3#define SECRET_PASS "yourpassword"

Storing your network & password in a separate file minimizes the risk of you accidentally sharing your Wi-Fi® credentials.

Access Point

Code Source on Github
1

Connect With WPA

Code Source on Github
1

Scan Networks

Code Source on Github
1

Scan Networks (Advanced)

Code Source on Github
1

Simple Webserver

Code Source on Github
1

Wi-Fi® Chat Server

Code Source on Github
1

Wi-Fi® UDP NTP Client

Code Source on Github
1

Wi-Fi® UDP Send Receive String

Code Source on Github
1

Wi-Fi® Web Client

Code Source on Github
1

Wi-Fi® Web Client Repeating

Code Source on Github
1

Wi-Fi® Web Client SSL

Code Source on Github
1

Wi-Fi® Web Server

Code Source on Github
1

Suggest changes

The content on docs.arduino.cc is facilitated through a public GitHub repository. If you see anything wrong, you can edit this page here.

License

The Arduino documentation is licensed under the Creative Commons Attribution-Share Alike 4.0 license.