mattsaxon / HASS-SpeakercraftMediaPlayer

Speakercraft Platform for Home Assistant
4 stars 1 forks source link

Consider Threading as opposed to Asyncio Coroutines for the serial read/write interface #27

Open mattsaxon opened 2 years ago

mattsaxon commented 2 years ago

Because the software flow control is time senstive, we may need to swap to using "real" threads.

At the moment, on startup there seems to be some sync issues and also when sending a lot of commands in quick sequence.

So far this hasn't impacted functionality, but is one to watch

sjeffrey101 commented 2 years ago

Agree 1 to watch! - if threading improves things then why not.

For me i get few issues once HA has fully started. (but my machine is higher powered) Also the remote ESP32 could be a solution for offloading the busy serial on low power machines, if we make it handle the command window.