template | thumbnail | language | tags | |
---|---|---|---|---|
true |
./thumbnail.png |
en |
|
This turns your ESP32 into a soft access point which means it is its own wi-fi network but also a server inside this network. Due to this you can connect on this local network and exchange HTTP messages with your ESP32.
- an ESP32 dev board
- the ESP32 related toolkit, click here to see how to install it.
Use your Arduino IDE to upload the code to your board. Then check the console to see which name the ESP's network has and the IP address within this network. At this point you can connect to this network, then open a web browser like Google Chrome or Mozilla Firefox and input the IP into your address bar.
These lines are where you can change the name of your local network
const char* ssid = "basic_softAP_example";
The ESP will send you a webpage with a button when you query it. When the button is pressed the ESP will execute the buttonPressed()
function.
Don't worry about the IP. In this config, the ESP will always have the 192.168.4.1 address. More Info
In this configuration both the ESP32 and the machine you'll connect on its network won't have access to the Internet.
A very good website with ESP32 related tutorials : https://randomnerdtutorials.com/