-
|
Hi fellow-circlers, How do I shutdown the webserver properly? I've modified the 21-webserver example: expecting the log-message "shutting down" after a few seconds. the assertion is trigger in the destructor ~CHTTPDaemon(). Any hints are much appreciated. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
|
Please start the web server using
new CWebServer (&m_Net, &m_ActLED);
and don't delete it before the shutdown. This should work for a system
shutdown.
|
Beta Was this translation helpful? Give feedback.
-
|
hi, |
Beta Was this translation helpful? Give feedback.
No, the model is, that the network subsystem (with or without WLAN) is only started once, and is shutdown once before system shutdown. It cannot be restarted. The WLAN should reconnect automatically, if it was disconnected.
m_Net.IsRunning()returnsTRUE, when the network device layer is initialized and an IP address has been assigned (DHCP).m_WPASupplicant.IsConnected()returns, if the WPA connection is up. This status may need some time to be updated, because there are timeouts involved.