• Skip to main content
  • Skip to primary sidebar

RNTLab.com

The Ultimate Shortcut to Learn Electronics and Programming with Open Source Hardware and Software

  • Courses
  • Forum
    • Forum
    • Ask Question
  • Shop
  • Account
  • Blog
  • Login

Server-sent example and softAP in esp8266

Q&A Forum › Category: ESP8266 › Server-sent example and softAP in esp8266
0 Vote Up Vote Down
stefano scibilia asked 4 years ago

 

 

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.
Question Tags: Server-sent
3 Answers
0 Vote Up Vote Down
Sara Santos Staff answered 4 years ago

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

0 Vote Up Vote Down
stefano scibilia answered 4 years ago

 

 

Thank you so much Sara, I really appreciate your help! I have found your course and assistance very useful.
0 Vote Up Vote Down
Sara Santos Staff answered 4 years ago

Thanks.
That’ s great!
I’ll mark this issue as resolved.
If you need further help, you just need to open a new question in our forum.
Regards,
Sara

Primary Sidebar

Login to Ask or Answer Questions

This Forum is private and it’s only available for members enrolled in our Courses.

Login »

Latest Course Updates

  • [eBook Updated] Learn Raspberry Pi Pico/Pico W with MicroPython eBook – Version 1.2 May 26, 2025
  • [New Edition] Build ESP32-CAM Projects eBook – 2nd Edition April 16, 2025

You must be logged in to view this content.

Contact Support - Refunds - Privacy - Terms - MakerAdvisor.com - Member Login

Copyright © 2013-2025 · RandomNerdTutorials.com · All Rights Reserved

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.