|
1 | | -# <h1 align="center">ESP32 WiFi JSON Status Checker</h1> |
| 1 | +<h1 align="center">ESP32 WiFi JSON Status Checker</h1> |
2 | 2 |
|
3 | | -# |
4 | 3 |
|
5 | | -# > Made by Lukas Hilverda |
6 | 4 |
|
7 | | -# |
| 5 | +> Made by Lukas Hilverda |
8 | 6 |
|
9 | | -# This project is a simple ESP32 program that connects to a Wi-Fi network and fetches a JSON response from a specified URL. It parses the JSON and checks for an `"online"` field, then prints the result to the serial monitor. |
10 | 7 |
|
11 | | -# |
12 | 8 |
|
13 | | -# \## 📦 Features |
| 9 | +This project is a simple ESP32 program that connects to a Wi-Fi network and fetches a JSON response from a specified URL. It parses the JSON and checks for an `"online"` field, then prints the result to the serial monitor. |
14 | 10 |
|
15 | | -# |
16 | 11 |
|
17 | | -# \- Connects to a Wi-Fi network |
18 | 12 |
|
19 | | -# \- Sends an HTTP GET request to a server |
| 13 | + \* \[Features](#features) |
20 | 14 |
|
21 | | -# \- Parses JSON response using ArduinoJson |
| 15 | + \* \[Requirements](#requirements) |
22 | 16 |
|
23 | | -# \- Checks if a device or service is online |
| 17 | + \* \[Installation](#installation) |
24 | 18 |
|
25 | | -# \- Output shown via Serial Monitor |
26 | 19 |
|
27 | | -# |
28 | 20 |
|
29 | | -# \## 🛠 Requirements |
| 21 | +\## Features |
30 | 22 |
|
31 | | -# |
32 | 23 |
|
33 | | -# \- ESP32 board |
34 | 24 |
|
35 | | -# \- Arduino IDE or PlatformIO |
| 25 | +\* Connects to a Wi-Fi network |
36 | 26 |
|
37 | | -# \- Libraries: |
| 27 | +\* Sends an HTTP GET request to a server |
38 | 28 |
|
39 | | -# - \[WiFi.h](https://www.arduino.cc/en/Reference/WiFi) |
| 29 | +\* Parses JSON response using ArduinoJson |
40 | 30 |
|
41 | | -# - \[HTTPClient.h](https://www.arduino.cc/en/Reference/HTTPClient) |
| 31 | +\* Checks if a device or service is online |
42 | 32 |
|
43 | | -# - \[ArduinoJson](https://arduinojson.org/) |
| 33 | +\* Output shown via Serial Monitor |
44 | 34 |
|
45 | | -# |
46 | 35 |
|
47 | | -# \## 📋 Installation |
48 | 36 |
|
49 | | -# |
| 37 | +\## Requirements |
50 | 38 |
|
51 | | -# 1\. Clone or download the project. |
52 | 39 |
|
53 | | -# 2\. Open the code in Arduino IDE. |
54 | 40 |
|
55 | | -# 3\. Fill in your Wi-Fi credentials and the server URL: |
| 41 | +\* ESP32 board |
56 | 42 |
|
57 | | -# ```cpp |
| 43 | +\* Arduino IDE or PlatformIO |
58 | 44 |
|
59 | | -# const char\* ssid = "YOUR\_WIFI\_SSID"; |
| 45 | +\* Libraries: |
60 | 46 |
|
61 | | -# const char\* password = "YOUR\_WIFI\_PASSWORD"; |
| 47 | + \* \[WiFi.h](https://www.arduino.cc/en/Reference/WiFi) |
62 | 48 |
|
63 | | -# String url = "http://your-server.com/status"; |
| 49 | + \* \[HTTPClient.h](https://www.arduino.cc/en/Reference/HTTPClient) |
64 | 50 |
|
| 51 | + \* \[ArduinoJson](https://arduinojson.org/) |
65 | 52 |
|
66 | 53 |
|
| 54 | + |
| 55 | +\## Installation |
| 56 | + |
| 57 | + |
| 58 | + |
| 59 | +1\. Clone or download the project. |
| 60 | + |
| 61 | +2\. Open the code in Arduino IDE. |
| 62 | + |
| 63 | +3\. Fill in your Wi-Fi credentials and the server URL: |
| 64 | + |
| 65 | + ```cpp |
| 66 | + |
| 67 | + const char\* ssid = "YOUR\_WIFI\_SSID"; |
| 68 | + |
| 69 | + const char\* password = "YOUR\_WIFI\_PASSWORD"; |
| 70 | + |
| 71 | + String url = "http://your-server.com/status"; |
| 72 | + |
0 commit comments