[GH-ISSUE #319] How can I run ESP8266 in WIFI_AP_STA mode along with WiFiManager ? #266

Closed
opened 2026-02-28 01:24:24 +03:00 by kerem · 1 comment
Owner

Originally created by @desaiuditd on GitHub (Feb 20, 2017).
Original GitHub issue: https://github.com/tzapu/WiFiManager/issues/319

Right now, I tried the sample code and I added my code for AP mode as follows, but it did not work for the SSID I gave:

void setup() {
  // put your setup code here, to run once:
  delay(1000);
  Serial.begin(115200);
//  Serial.setDebugOutput(true); 
  Serial.println();
  Serial.print("Configuring access point...");
  
  // set both access point and station
  WiFi.mode(WIFI_AP_STA);
  
  WiFi.softAP(ssid);

  IPAddress myIP = WiFi.softAPIP();
  Serial.print("AP IP address: ");
  Serial.println(myIP);

  WiFiManager wifiManager;
  wifiManager.autoConnect();

}
Originally created by @desaiuditd on GitHub (Feb 20, 2017). Original GitHub issue: https://github.com/tzapu/WiFiManager/issues/319 Right now, I tried the sample code and I added my code for AP mode as follows, but it did not work for the SSID I gave: ``` void setup() { // put your setup code here, to run once: delay(1000); Serial.begin(115200); // Serial.setDebugOutput(true); Serial.println(); Serial.print("Configuring access point..."); // set both access point and station WiFi.mode(WIFI_AP_STA); WiFi.softAP(ssid); IPAddress myIP = WiFi.softAPIP(); Serial.print("AP IP address: "); Serial.println(myIP); WiFiManager wifiManager; wifiManager.autoConnect(); } ```
kerem closed this issue 2026-02-28 01:24:25 +03:00
Author
Owner

@technodict commented on GitHub (Feb 22, 2017):

Would be interesting to use ESP8266 in AP+STA mode. Will be useful to get error logs from WiFiManager.

<!-- gh-comment-id:281627160 --> @technodict commented on GitHub (Feb 22, 2017): Would be interesting to use ESP8266 in AP+STA mode. Will be useful to get error logs from WiFiManager.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/WiFiManager#266
No description provided.