Hello, is it possible to use the example 3_1_Sensor_Readings_ESP8266 in SoftAP configuration? I would need to do this server-sent events example without a router connection.
Thanks in advance for any help.
3 Answers
Hi.
Yes, you can do that.
We’ll add instructions on how to set up an access point in the next eBook release.
Here’s the instructions to set up the access point:
You need to define an SSID name and a password for the access point. For example:
// Replace with desired access point credentials
const char* ssid = "ESP32-Access-Point"; const char* password = "123456789";
Setting the ESP as an Access Point
The initAP() function initializes the ESP as an access point with the credentials you’ve defined in the code.
void initAP() { WiFi.mode(WIFI_AP); WiFi.softAP(ssid, password); }
Then, you just need to call the initAP() function in the setup() and your web server projects will run in access point mode.
I hope this helps.
Regards,
Sara
Thank you so much Sara, I really appreciate your help! I have found your course and assistance very useful.