This project is a simple web server implemented on an Arduino Uno WiFi Rev2. It connects to a Wi-Fi network and listens for incoming HTTP requests. When it receives a GET request, it responds with a JSON object containing a predefined name.
- Connects to a Wi-Fi network using
WiFiNINA
library. - Hosts a simple web server on port 80.
- Responds to HTTP GET requests with a JSON object.
- Arduino Uno WiFi Rev2
- USB cable for programming and power
- Wi-Fi network to connect to
WiFiNINA
: Library to manage Wi-Fi connections on the Arduino Uno WiFi Rev2. link
Before uploading the code, make sure you have the following libraries installed in the Arduino IDE:
- WiFiNINA library (can be installed via Arduino Library Manager)
Connect the Arduino Uno WiFi Rev2 to your computer via the USB cable.
In the code, change the ssid
and pass
variables to match your Wi-Fi network credentials.
char ssid[] = "your_network_name"; // Replace with your Wi-Fi network name
char pass[] = "your_password"; // Replace with your Wi-Fi password