Timeline for Where to define web server callback functions so they can access server object? (ESP8266WebServer library)
Current License: CC BY-SA 4.0
5 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Jun 14, 2023 at 14:09 | answer | added | eltharin | timeline score: 2 | |
Feb 12, 2021 at 12:53 | comment | added | dandavis |
i would move ESP8266WebServer server(80); to the 4th line; outside any function. I think you might need to call on() before begin() as well, just once, like in setup(), at least that's how mine works.
|
|
Feb 12, 2021 at 0:26 | comment | added | hcheung |
"It is not allowed to define the callback functions inside Device::getWifiCredentials", it can be done with an anonymous function like server.on("/ssid", []() { } .
|
|
Feb 11, 2021 at 22:32 | review | First posts | |||
Feb 11, 2021 at 22:57 | |||||
Feb 11, 2021 at 22:29 | history | asked | LearnDude | CC BY-SA 4.0 |