[GH-ISSUE #279] On Demand Portal SSID with ChipID? #232

Closed
opened 2026-02-28 01:24:13 +03:00 by kerem · 2 comments
Owner

Originally created by @simonliu009 on GitHub (Jan 7, 2017).
Original GitHub issue: https://github.com/tzapu/WiFiManager/issues/279

Hi tzapu,
The on demand portal is working like a charm.
Right now I can only use fixed SSID for the wifiManager.startConfigPortal(), is there any way to add the ChipID to the on demand portal SSID like the wifiManager.autoConnect() does?
I tried the following code but it failed to compile with the "no matching function for call to 'WiFiManager::startConfigPortal(String&)' wifiManager.startConfigPortal(onCmdSSID);" error .
`

         if ( digitalRead(apConfig) == LOW ) {
          
       Serial1.print("Entering config mode on demand...");

          // WiFiManager wifiManager;

          String onCmdSSID = "ESP" + String(ESP.getChipId());

          wifiManager.startConfigPortal(onCmdSSID);

          Serial1.println("connected...yeey :)");
        }

`

Originally created by @simonliu009 on GitHub (Jan 7, 2017). Original GitHub issue: https://github.com/tzapu/WiFiManager/issues/279 Hi tzapu, The on demand portal is working like a charm. Right now I can only use fixed SSID for the wifiManager.startConfigPortal(), is there any way to add the ChipID to the on demand portal SSID like the wifiManager.autoConnect() does? I tried the following code but it failed to compile with the "no matching function for call to 'WiFiManager::startConfigPortal(String&)' wifiManager.startConfigPortal(onCmdSSID);" error . ` if ( digitalRead(apConfig) == LOW ) { Serial1.print("Entering config mode on demand..."); // WiFiManager wifiManager; String onCmdSSID = "ESP" + String(ESP.getChipId()); wifiManager.startConfigPortal(onCmdSSID); Serial1.println("connected...yeey :)"); } `
kerem 2026-02-28 01:24:13 +03:00
Author
Owner

@tzapu commented on GitHub (Jan 10, 2017):

hi,

it s been added to the development version
https://github.com/tzapu/WiFiManager/tree/development

cheers

<!-- gh-comment-id:271515643 --> @tzapu commented on GitHub (Jan 10, 2017): hi, it s been added to the development version https://github.com/tzapu/WiFiManager/tree/development cheers
Author
Owner

@ArnieX commented on GitHub (Feb 12, 2017):

Hi @simonliu009,

I do it this way and it works:

// Define variable
String autoconf_ssid = "SWIFITCH_"+String(ESP.getChipId());
// Later calling autoconnect
wifiManager.autoConnect(autoconf_ssid.c_str());

Hope this helps.

<!-- gh-comment-id:279238569 --> @ArnieX commented on GitHub (Feb 12, 2017): Hi @simonliu009, I do it this way and it works: ```arduino // Define variable String autoconf_ssid = "SWIFITCH_"+String(ESP.getChipId()); // Later calling autoconnect wifiManager.autoConnect(autoconf_ssid.c_str()); ``` Hope this helps.
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#232
No description provided.