-->
Page 1 of 1

softap_config.max_connection Limit?

PostPosted: Thu Apr 02, 2015 3:09 pm
by wbartnick
It appears that there is a max limit of 4 on the max_connection parameter. When I call wifi_softap_set_config() with a value greater than 4, a subsequent wifi_softap_get_config() returns max_connections = 4. Is this by design, or am I maybe missing something?

Re: softap_config.max_connection Limit?

PostPosted: Thu Apr 02, 2015 3:38 pm
by wbartnick
To follow this up, it looks like the DHCP server has a max range of 101 addresses. Is there a way around this limitation?

Re: softap_config.max_connection Limit?

PostPosted: Fri Apr 03, 2015 4:20 am
by Athena
Hi,

yes,softap_config.max_connection is limited ,max to be 4. Because RAM is limited.
softap_config.png
softap_config.png (8.25 KiB) Viewed 3382 times


DHCP range can be set by wifi_softap_set_dhcps_lease

Re: softap_config.max_connection Limit?

PostPosted: Fri Apr 03, 2015 8:07 am
by wbartnick
Athena wrote:Hi,

yes,softap_config.max_connection is limited ,max to be 4. Because RAM is limited.
softap_config.png


DHCP range can be set by wifi_softap_set_dhcps_lease


Thanks for the reply. I hadn't thought to look at the declaration of soft_config for any comments. I suppose I'm just asking too much for a device with 80K RAM. :lol:

As for DHCP, I am using wifi_softap_set_dhcps_lease(), and it will only allow a range of 101 addresses between start_ip and end_ip (e.g., 192.168.1.1 to 192.168.1.101 succeeds, while 192.168.1.1 to 192.168.1.102 fails). I was really asking if that range limitation can be overcome, but it looks like that's moot, considering we can only host a max of 4 clients at a time.