In the softAP example code
, if a client moves out of range or powers off suddenly, it takes about 334 seconds (5 minutes) before I see this in the serial log:
Code: Select all
W (552929) wifi: inactive timer: now=20f010f1 last_rx_time=ef8bad1 diff=4996e, aid84:3a:4b:9e:64:c0 leave
I (552929) wifi: station: 84:3a:4b:9e:64:c0 leave, AID = 1
I (552939) wifi: n:4 0, o:4 0, ap:4 1, sta:255 255, prof:4
I (552939) esp-streamer: station:84:3a:4b:9e:64:c0leave, AID=1
My application requires a quicker response to this failure mode, but I cannot figure out how the timeout is enforced. I can't actually see where any code in ESP-IDF actually triggers the SYSTEM_EVENT_STA_DISCONNECTED event, only where it's handled. I can't find where this timeout is set in the initialisation code. Is there a way to tune this particular parameter?