bdring / FluidNC

The next generation of motion control firmware
Other
1.61k stars 383 forks source link

Fixed $WiFi/ListAPs. #1276

Closed MitchBradley closed 3 months ago

bdring commented 3 months ago

This works for me, but takes a longer than before.

MitchBradley commented 3 months ago

It takes longer the first time, but subsequent times are fast because the results from the last scan are cached. The longer time is a tradeoff. In the past, at wifi startup, FluidNC would initiate a scan and cache the results so they are immediately available to listaps. While the scan was happening, attempts to start WebUI would stall and sometimes fail because the WiFi core was busy with the scan. The upside, though, was that the scan data was already available when you asked for it.

It seems to me that it is preferable to optimize for the WebUI startup time, since that is typically done on every boot, compared to wifi scan which is only needed during one-time setup.