JP Hutchins
JP Hutchins
I have confirmed the small unit test with two USB UARTs on Windows 10.
OK, I think I see that `await writer.drain()` is returning prematurely. I am however able to block on the `flush()` method of the transport. The `FlowControlMixin` in the asyncio.streams module...
The following is working for me in serialwin32.py: Setup listener for EV_TXEMPTY in `_reconfigure_port()`: ```python win32.SetCommMask(self._port_handle, win32.EV_ERR | win32.EV_TXEMPTY) ``` And replace `flush()` with: ```python if self.out_waiting == 0: return...
OK, combined with the modification above we can create an awaitable Future by listening for the Windows event. ```python async def write_complete(self): await self._write_complete_future async def send(self, data): self._register_write_complete() self.write(data)...
@changyuheng Awesome! Work got a tad busy, but I've signed up for the python async and pywin32 mailing lists, each of which I need to submit some best practices questions...
Thanks @hufman ! The reason I started OEV was to provide a bridge to HA but the scope and goal posts kept shifting. Some concerns were raised that HA wouldn't...
Hey @thomasssino ! Unfortunately that's expected. TLDR the "daily partitions config" needs to be saved to the server's database and recalled on next login. For future reference: * The database...
Yes this is a good idea. Technically what you want is already possible following these steps: * remove the Night time period * add a new time period after Evening...
If some data is missing because the OEV server was down, PGE didn't push it one day, or muons, it should be possible for OEV to periodically audit the database...
That would be great! Let me know if you find anything that's getting in the way.