Compare commits

...

4 Commits

Author SHA1 Message Date
Stefan Allius
9420a137dc update changelog 2024-07-01 22:33:10 +02:00
Stefan Allius
4abc308445 fix exception in MODBUS timeout callback 2024-06-30 00:27:58 +02:00
Stefan Allius
f527dfbbec update changelog 2024-06-30 00:06:39 +02:00
Stefan Allius
a79b36c361 update changelog 2024-06-29 23:52:12 +02:00
2 changed files with 10 additions and 0 deletions

View File

@@ -7,6 +7,14 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
## [unreleased]
## [0.9.0] - 2024-07-01
- fix exception in MODBUS timeout callback
## [0.9.0-RC1] - 2024-06-29
- add asyncio log and debug mode
- stop the HTTP server on shutdown gracefully
- Synchronize regular MODBUS commands with the status of the inverter to prevent the inverter from crashing due to
unexpected packets. [#111](https://github.com/s-allius/tsun-gen3-proxy/issues/111)
- GEN3: avoid sending MODBUS commands to the inverter during the inverter's reporting phase

View File

@@ -108,6 +108,7 @@ class Modbus():
def close(self):
"""free the queue and erase the callback handlers"""
logging.debug('Modbus close:')
self.__stop_timer()
self.rsp_handler = None
self.snd_handler = None
while not self.que.empty:
@@ -252,6 +253,7 @@ class Modbus():
# logging.debug(f'Modbus stop timer {self}')
if self.tim:
self.tim.cancel()
self.tim = None
def __timeout_cb(self) -> None:
'''Rsponse timeout handler retransmit pdu or send next pdu'''