ESP32 WiFi-AP模式下点灯控制程序
- 这是在VSCode里面的Platform环境下编译并上传的。
- 如需在ArduinoIDE环境下编译上传,直接拷贝过去粘贴,即可。注意选择对应的开发板。我选择的是
ESP Dev Module
#include <Arduino.h>
/*
WiFiAccessPoint.ino creates a WiFi access point and provides a web server on it.
Steps:
1. Connect to the access point "yourAp"
2. Point your web browser to http://192.168.4.1/H to turn the LED on or http://192.168.4.1/L to turn it off
OR
Run raw TCP "GET /H" and "GET /L" on PuTTY terminal with 192.168.4.1 as IP address and 80 as port
Created for arduino-esp32 on 04 July, 2018
by Elochukwu Ifediora (fedy0)
*/