[GH-ISSUE #531] clean up examples #443

Open
opened 2026-02-28 01:25:19 +03:00 by kerem · 8 comments
Owner

Originally created by @tablatronix on GitHub (Feb 19, 2018).
Original GitHub issue: https://github.com/tzapu/WiFiManager/issues/531

Too many examples, simplify

  • AutoConnect
  • AutoConnectWithFeedback
  • AutoConnectWithFeedbackLED
  • AutoConnectWithFSParameters
  • AutoConnectWithFSParametersAndCustomIP
  • AutoConnectWithReset
  • AutoConnectWithStaticIP
  • AutoConnectWithTimeout
  • OnDemandConfigPortal
  • OnDemandWebPortal
Originally created by @tablatronix on GitHub (Feb 19, 2018). Original GitHub issue: https://github.com/tzapu/WiFiManager/issues/531 Too many examples, simplify - AutoConnect - AutoConnectWithFeedback - AutoConnectWithFeedbackLED - AutoConnectWithFSParameters - AutoConnectWithFSParametersAndCustomIP - AutoConnectWithReset - AutoConnectWithStaticIP - AutoConnectWithTimeout - OnDemandConfigPortal - OnDemandWebPortal
Author
Owner

@tablatronix commented on GitHub (Feb 19, 2018):

Suggested

  • AutoConnect
  • FSParameters
  • OnDemandConfigPortal
  • OnDemandWebPortal
  • kitchenSink
<!-- gh-comment-id:366752433 --> @tablatronix commented on GitHub (Feb 19, 2018): Suggested - AutoConnect - FSParameters - OnDemandConfigPortal - OnDemandWebPortal - kitchenSink
Author
Owner

@2delarosa commented on GitHub (Mar 20, 2018):

I'm looking for an example of setting the ESP hostname when in station mode.

<!-- gh-comment-id:374586298 --> @2delarosa commented on GitHub (Mar 20, 2018): I'm looking for an example of setting the ESP hostname when in station mode.
Author
Owner

@tablatronix commented on GitHub (Mar 20, 2018):

#570

<!-- gh-comment-id:374783714 --> @tablatronix commented on GitHub (Mar 20, 2018): #570
Author
Owner

@tablatronix commented on GitHub (Jun 29, 2018):

  • Move all autoconnect into subfolder

  • Move basic autoconnect to simple example ( minimal )

  • reduce variations, remove all custom code from examples

  • add custom example containing kitchen sink of custom options for configportal

    • custom examples
    • set hostname
  • add non blocking example for configportal and webportal, maybe make it smart, call configportal if not connected, and webportal if paired with ap, use selection logic in the example so reduce number of files.

  • add basic example, autoconnect, ondemand configportal, external reset all in one, useful for testing code

<!-- gh-comment-id:401418768 --> @tablatronix commented on GitHub (Jun 29, 2018): - [ ] Move all autoconnect into subfolder - [ ] Move basic autoconnect to simple example ( minimal ) - [ ] reduce variations, remove all custom code from examples - [ ] add custom example containing kitchen sink of custom options for configportal * custom examples * set hostname - [ ] add non blocking example for configportal and webportal, maybe make it smart, call configportal if not connected, and webportal if paired with ap, use selection logic in the example so reduce number of files. - [ ] add basic example, autoconnect, ondemand configportal, external reset all in one, useful for testing code
Author
Owner

@tablatronix commented on GitHub (Jun 29, 2018):

Advanced config

AutoConnect

setConnectTimeout
setEnableConfigPortal
setHostname
setSTAStaticIPConfig(..,dns)

ConfigPortal

setConfigPortalTimeout
setConfigPortalBlocking
setCaptivePortalEnable
setAPStaticIPConfig
setBreakAfterConfig
setSaveConnectTimeout

WEB UI

setRemoveDuplicateAPs
setScanDispPerc
setMenu(menu_page_t[])
setShowDnsFields
setShowStaticFields
setShowInfoErase
setCustomHeadElement
setMinimumSignalQuality

functionality

getConfigPortalSSID
setRestorePersistent
setCaptivePortalClientCheck
setWebPortalClientCheck
startWebPortal
stopWebPortal
process
disconnect
erase
debugSoftAPConfig
debugPlatformInfo
setWiFiAutoReconnect
getLastConxResult
getWLStatusString
getWiFiIsSaved
getModeString
htmlEntities

<!-- gh-comment-id:401421017 --> @tablatronix commented on GitHub (Jun 29, 2018): Advanced config ### AutoConnect setConnectTimeout setEnableConfigPortal setHostname setSTAStaticIPConfig(..,dns) ### ConfigPortal setConfigPortalTimeout setConfigPortalBlocking setCaptivePortalEnable setAPStaticIPConfig setBreakAfterConfig setSaveConnectTimeout ### WEB UI setRemoveDuplicateAPs setScanDispPerc setMenu(menu_page_t[]) setShowDnsFields setShowStaticFields setShowInfoErase setCustomHeadElement setMinimumSignalQuality ### functionality getConfigPortalSSID setRestorePersistent setCaptivePortalClientCheck setWebPortalClientCheck startWebPortal stopWebPortal process disconnect erase debugSoftAPConfig debugPlatformInfo setWiFiAutoReconnect getLastConxResult getWLStatusString getWiFiIsSaved getModeString htmlEntities
Author
Owner

@joko2020 commented on GitHub (Jul 22, 2021):

setBreakAfterConfig

Hi @tablatronix I need help to use setBreakAfterConfig ,

What i want to do is disable config portal or try to connect to wifi in background mode, so the program can continue to void loop. can this function be used?
thank you

<!-- gh-comment-id:885053617 --> @joko2020 commented on GitHub (Jul 22, 2021): > setBreakAfterConfig Hi @tablatronix I need help to use `setBreakAfterConfig` , What i want to do is disable config portal or try to connect to wifi in background mode, so the program can continue to void loop. can this function be used? thank you
Author
Owner

@tablatronix commented on GitHub (Jul 24, 2021):

Yes that is non blocking mode see the examples

<!-- gh-comment-id:885982467 --> @tablatronix commented on GitHub (Jul 24, 2021): Yes that is non blocking mode see the examples
Author
Owner

@joko2020 commented on GitHub (Jul 24, 2021):

Ok thanks

<!-- gh-comment-id:885992981 --> @joko2020 commented on GitHub (Jul 24, 2021): Ok thanks
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#443
No description provided.