OmWebServer
IntroductionManages wifi connection, and forwarding http requests to a handler, typically OmWebPages Member Functions
addWifiadd to the list of known networks to try. public clearWifisreset the list of known networks to try, to empty again. public getBonjourNameget the current bonjour name public glitchsimulate a network trouble. 1==disconnect the wifi public isWifiConnectedis it? public setAccessPointpublic Discussionmust be set before begin(), and cannot be revoked. Creates a wifi network access point with the name shown. You'll have to communicate the IP address to the user by your own means, on screen display or something. set "" for no access point. NOTE: 2019-12-14 works sometimes. I dont highly recommend. :( setBonjourNameadvertises on local network as bonjourName.local public setHandlerIntroduce an OmWebPages to the server, done and done! public setNtpIntroduce an NTP object to the server setPortdefaults to 80 public setStatusCallbackreceive notifications of changes to wifi status public setStatusLedPinchanges or disables the blinking status LED. Use -1 to disable. public setVerboseOmWebServer by default prints much status to serial; set to 0 to cut that out. public tickYou must call this in loop() to give time to run. This allows networks to be joined and rejoined, and is when requests are served. Call it often! public uptimeMillisarduino's millis() will overflow after 50 days. Not this baby. public |