- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello
I am implementing a server with my ISM4319_TESTBOARD. For this I am using the function:
wiced_http_server_start ( & ap_http_server, 80, max_sockets, web_pages, WICED_AP_INTERFACE, DEFAULT_URL_PROCESSOR_STACK_SIZE );
where:
max_sockets = 5;
Once this is done, a client device can connect to the access point of my server and make http requests.
The problem occurs when the client disconnects and reconnects from my access point. After trying "max_sockets" my server gets stuck and does not respond to client requests,
I have noticed that if before the client disconnects from my server, I stop the http port with the function:
wiced_http_server_stop (& ap_http_server);
and then I start again the http port, my server is no longer locked when I disconnect and reconnect to the access point, however this solution is not very useful, since I can not detect when a client is connected to my access point of unless the client makes an http request.
My two questions are:
How can I detect when a client device has just connected to the access point of my server, without having sent a request to the server?
Is there any other way to prevent my server from locking without having to restart my http port?
I would greatly appreciate your help.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi Raf:
For how to get the info when a sta is joining the AP Wiced_wifi_register_softap_event_handle is the correct choice from another question you raised. thanks.