Commit Graph

592 Commits

Author SHA1 Message Date
Stefan Allius
cfe2c9cb9d remove connection classes 2024-10-02 23:40:42 +02:00
Stefan Allius
39aba31bbd refactor close handling 2024-10-01 19:50:42 +02:00
Stefan Allius
a1441fb4fd add close callback 2024-09-30 19:17:06 +02:00
Stefan Allius
f2ade43410 fixes
- fixes null pointer accesses
- initalize AsyncStreamClient with proper
  StreamPtr instance
2024-09-30 19:14:50 +02:00
Stefan Allius
8f695518bd update class diagramm 2024-09-30 19:13:29 +02:00
Stefan Allius
b3068a256c don't overwrite self.remote in constructor 2024-09-30 19:12:49 +02:00
Stefan Allius
2336955bb8 fix client loop closing 2024-09-29 21:11:53 +02:00
Stefan Allius
518375e8a8 fix server connections 2024-09-29 20:49:08 +02:00
Stefan Allius
41aeac4168 resolution of connection classes
- remove ConnectionG3Client
- remove ConnectionG3Server
- remove ConnectionG3PClient
- remove ConnectionG3PServer
2024-09-29 20:08:04 +02:00
Stefan Allius
5a0ef30ceb move StremPtr instances into Inverter class 2024-09-29 15:31:14 +02:00
Stefan Allius
0c824b4a2a reduce code duplication 2024-09-29 10:15:38 +02:00
Stefan Allius
2ef7a7e201 remove duplicated imports 2024-09-28 23:30:23 +02:00
Stefan Allius
2be0ef67af refactor server creation 2024-09-28 22:43:29 +02:00
Stefan Allius
7b6810cb46 update class diagramm 2024-09-27 19:25:40 +02:00
Stefan Allius
aa7c1832ef split ConnectionG3(P) in server and client class 2024-09-27 00:47:44 +02:00
Stefan Allius
73526b7dc6 split AsyncStream in two classes 2024-09-26 23:04:11 +02:00
Stefan Allius
b6761e7517 FIX update_header_cb handling 2024-09-26 00:14:51 +02:00
Stefan Allius
209956865b add two more callbacks 2024-09-26 00:11:11 +02:00
Stefan Allius
bc54944077 add two more callbacks 2024-09-25 22:41:01 +02:00
Stefan Allius
37c977c2fe avoid mqtt handling for invalid serial numbers 2024-09-25 00:11:39 +02:00
Stefan Allius
d5c369e5fe refactoring 2024-09-24 21:12:51 +02:00
Stefan Allius
89c2c11ed9 refactoring 2024-09-24 21:10:58 +02:00
Stefan Allius
eea725b8da remove _forward_buffer 2024-09-22 15:00:53 +02:00
Stefan Allius
0b437cf3bc - refactoring
- remove _forward_buffer
- make async_write private
2024-09-22 14:59:18 +02:00
Stefan Allius
edc0f7a6af Merge branch 'dev-0.11' of https://github.com/s-allius/tsun-gen3-proxy into refactoring-async-stream 2024-09-22 10:51:41 +02:00
Stefan Allius
9ffcfbc9ce declare more methods as classmethods 2024-09-22 10:42:48 +02:00
Stefan Allius
b7c63b5cf8 use AsyncIfc class with FIFO 2024-09-22 10:40:30 +02:00
Stefan Allius
af81aef07c add object factory 2024-09-22 10:29:38 +02:00
Stefan Allius
f216c2434e introduce ifc with FIFOs 2024-09-22 10:28:36 +02:00
Stefan Allius
166a856705 GEN3: Invalid Contact Info Msg (#192)
Fixes #191
2024-09-19 19:17:22 +02:00
Stefan Allius
39540678fb GEN3: Invalid Contact Info Msg
Fixes #191
2024-09-18 22:07:26 +02:00
Stefan Allius
d5ec47fd1e Merge branch 'main' of https://github.com/s-allius/tsun-gen3-proxy into dev-0.11 2024-09-16 00:37:39 +02:00
Stefan Allius
828f26cf24 Update README.md (#189)
Config file is now foldable
2024-09-16 00:17:43 +02:00
Stefan Allius
0b3d84ff36 change default config 2024-09-16 00:12:30 +02:00
Stefan Allius
5642c912a8 add dokumentation 2024-09-15 15:17:45 +02:00
Stefan Allius
614acbf32d update changelog 2024-09-15 01:18:36 +02:00
Stefan Allius
57525ca519 S allius/issue186 (#188)
* increase test coverage
2024-09-15 01:02:49 +02:00
Stefan Allius
5ef68280b1 S allius/issue186 (#187)
* Parse more values in Server Mode
Fixes #186

* read OUTPUT_COEFFICIENT and MAC_ADDR in SrvMode

* fix unit test

* increase test coverage
2024-09-14 19:49:29 +02:00
Stefan Allius
e12c78212f Update README.md (#185)
update badges
2024-09-14 08:40:53 +02:00
Stefan Allius
2ab35a8257 increase test coverage 2024-09-07 18:04:28 +02:00
Stefan Allius
865216b8d9 remove dubbled fixtures 2024-09-07 18:03:50 +02:00
Stefan Allius
5d5d7c218f fix target preview v0.11.0-preview.1 2024-09-07 13:49:45 +02:00
Stefan Allius
be4c6ac77f S allius/issue182 (#183)
* GEN3: After inverter firmware update the 'Unknown Msg Type' increases continuously
Fixes #182

* add support for Controller serial no and MAC

* test hardening

* GEN3: add support for new messages of version 3 firmwares

* bump libraries to latest versions

- bump aiomqtt to version 2.3.0
- bump aiohttp to version 3.10.5

* improve test coverage

* reduce cognective complexity
2024-09-07 11:45:16 +02:00
Stefan Allius
a9dc7e6847 Dev 0.11 (#181)
* Sonar qube 6 (#174)

* test class ModbusConn

* Sonar qube 3 (#178)

* add more unit tests

* GEN3: don't crash on overwritten msg in the receive buffer

* improve test coverage und reduce test delays

* reduce cognitive complexity
2024-09-03 18:58:24 +02:00
Stefan Allius
270732f1d0 fix merge conflict 2024-09-03 18:54:49 +02:00
Stefan Allius
7b4fabdc25 fix merge conflikt 2024-09-03 18:48:21 +02:00
Stefan Allius
2351ec314a fix merge 2024-09-03 18:42:48 +02:00
Stefan Allius
604d30c711 Merge branch 'main' of https://github.com/s-allius/tsun-gen3-proxy into dev-0.11 2024-09-03 18:39:27 +02:00
Stefan Allius
ab5256659b reduce cognitive complexity sonar_establ 2024-09-03 18:32:44 +02:00
Stefan Allius
a76c0ac440 improve test coverage und reduce test delays 2024-09-03 17:23:09 +02:00