TreeFallSound / pi-stomp

pi-stomp is a DIY high definition, multi-effects stompbox platform for guitar, bass and keyboards
https://treefallsound.com
GNU General Public License v3.0
106 stars 19 forks source link

[RFC] wifi: Rework/improve wifi status #23

Closed ozbenh closed 2 years ago

ozbenh commented 2 years ago

This removes reliance on the patchbox CLI which is very slow and was only called occasionally.

Instead, we have our own implementation to query the wifi state more directly (much faster), running from a separate thread as to avoid affecting the UI responsiveness.

This allows us to keep a "live" status that is properly updated when things change from outside of pi-stomp control. This also cuts a few seconds from pi-stomp startup time (patchbox CLI is that slow).

The next step is probably to have our own UI for configuring the wifi but that is for another day :-) We probably want to do some serious UI cleanup work before we do any drastic change such as implementing an encoder-driven keyboard...

Signed-off-by: Benjamin Herrenschmidt benh@kernel.crashing.org