Chat freely about anything...

User avatar
By wbartnick
#13301 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?
User avatar
By Athena
#13330 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 3381 times


DHCP range can be set by wifi_softap_set_dhcps_lease
User avatar
By wbartnick
#13355
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.