[GH-ISSUE #752] IMPROVEMENT: Allow callback or some other method when entering auto connect #628

Closed
opened 2026-02-28 01:26:18 +03:00 by kerem · 7 comments
Owner

Originally created by @Foozinator on GitHub (Oct 12, 2018).
Original GitHub issue: https://github.com/tzapu/WiFiManager/issues/752

I'm working with an ESP8266 that has a small built-in OLED display. I'd like to show the SSID and IP of the unit when it enters the AP-mode for connection input. That way, I could just provide power to a "new" unit and not have to get a serial monitor to see what SSID + IP was used.

It looks like that might be simple enough to do if a callback was available for "about to enter AP-mode".

Originally created by @Foozinator on GitHub (Oct 12, 2018). Original GitHub issue: https://github.com/tzapu/WiFiManager/issues/752 I'm working with an ESP8266 that has a small built-in OLED display. I'd like to show the SSID and IP of the unit when it enters the AP-mode for connection input. That way, I could just provide power to a "new" unit and not have to get a serial monitor to see what SSID + IP was used. It looks like that might be simple enough to do if a callback was available for "about to enter AP-mode".
kerem 2026-02-28 01:26:18 +03:00
Author
Owner

@tablatronix commented on GitHub (Oct 12, 2018):

#452

<!-- gh-comment-id:429426235 --> @tablatronix commented on GitHub (Oct 12, 2018): #452
Author
Owner

@tablatronix commented on GitHub (Oct 12, 2018):

    //called when AP mode and config portal is started
    void          setAPCallback( std::function<void(WiFiManager*)> func );
<!-- gh-comment-id:429427085 --> @tablatronix commented on GitHub (Oct 12, 2018): ```CPP //called when AP mode and config portal is started void setAPCallback( std::function<void(WiFiManager*)> func ); ```
Author
Owner

@tablatronix commented on GitHub (Oct 12, 2018):

It looks like that gets fired BEFORE starting the ap..

hmm

<!-- gh-comment-id:429428051 --> @tablatronix commented on GitHub (Oct 12, 2018): It looks like that gets fired BEFORE starting the ap.. hmm
Author
Owner

@tablatronix commented on GitHub (Oct 12, 2018):

I moved it after softap() in development branch

Should not break anything and allow what you want.

<!-- gh-comment-id:429431038 --> @tablatronix commented on GitHub (Oct 12, 2018): I moved it after softap() in development branch Should not break anything and allow what you want.
Author
Owner

@tablatronix commented on GitHub (Oct 12, 2018):

1d0970a882

<!-- gh-comment-id:429431100 --> @tablatronix commented on GitHub (Oct 12, 2018): 1d0970a882b84d8840eb597785aae52e5c688605
Author
Owner

@tablatronix commented on GitHub (Oct 12, 2018):

👊 Possible Breaking Change!

<!-- gh-comment-id:429431401 --> @tablatronix commented on GitHub (Oct 12, 2018): 👊 Possible Breaking Change!
Author
Owner

@tablatronix commented on GitHub (May 11, 2020):

Noone has complained... closing

<!-- gh-comment-id:626867414 --> @tablatronix commented on GitHub (May 11, 2020): Noone has complained... closing
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#628
No description provided.