Bo Jeanes
5fc0e5b3a2
Address clippy errors
2022-09-09 16:58:43 +10:00
Bo Jeanes
e126e87e47
Remove unused/commented-out code
2022-09-09 16:44:39 +10:00
Bo Jeanes
6c01508457
Fix test
2022-09-09 16:38:24 +10:00
Bo Jeanes
c8139038f7
Fix register scale in example
2022-09-09 16:25:28 +10:00
Bo Jeanes
2d8612348f
Updating to MQTT with parsed state working
...
However, definitely getting some TCP issues to Modbus client, likely due
to unsafe polling of a task or something. If the connection establishes,
it seems rock solid, but sometimes it will get a "could not fill buffer"
error early on and then it just doesn't work.
It seems to come in waves. I think I'll need to handle it specifically
and restart the connection, if I can't identify the root cause.
2022-09-09 16:12:58 +10:00
Bo Jeanes
31da5cdd4b
Update README
2022-09-09 12:34:03 +10:00
Bo Jeanes
addd7bd472
Close MQTT connection only after everything else has shutdown
2022-09-08 18:31:05 +10:00
Bo Jeanes
34acb69ee1
wip
2022-09-08 17:52:49 +10:00
Bo Jeanes
1698959de9
Fix tests
2022-09-08 11:17:16 +10:00
Bo Jeanes
32cd2b2e78
Refactor modbus connection starting
2022-09-08 10:59:50 +10:00
Bo Jeanes
cd3cc6f19c
wip: connector mostly working
2022-09-08 10:16:44 +10:00
Bo Jeanes
a742fd2986
WIP
2022-09-07 12:20:02 +10:00
Bo Jeanes
f4593575ac
Add SunGather to similar projects
2022-09-06 08:56:59 +10:00
Bo Jeanes
2afad811df
Add name, about, version to CLI output
2022-09-06 08:56:59 +10:00
Bo Jeanes
8a1f340e01
Split protos into build features
2022-09-06 08:56:59 +10:00
Bo Jeanes
b6943ce9a9
Start custom error type
2022-09-06 08:56:59 +10:00
Bo Jeanes
f87fcec1cf
Update serde_aux for fix in vityafx/serde-aux#26
2022-09-06 08:50:56 +10:00
Bo Jeanes
8d7ee31a73
winets transport doesn't need tcp or rtu features
2022-09-04 13:10:39 +10:00
Bo Jeanes
8365c25fd0
Add GH action for tests/clippy
2022-09-04 13:10:39 +10:00
Bo Jeanes
46ad4a5c24
Update README.md
2022-09-04 11:12:49 +10:00
Bo Jeanes
ad8d73f6e5
Update README.md
2022-09-04 08:43:53 +10:00
Bo Jeanes
c664117971
Fix latest clippy errors
2022-09-01 08:24:58 +10:00
Bo Jeanes
69ada6e861
Remove unused field
2022-08-30 17:41:46 +10:00
Bo Jeanes
f346262be7
Address clippy errors
2022-08-30 17:41:22 +10:00
Bo Jeanes
ac3a7f0775
Fix tests
2022-08-30 17:40:03 +10:00
Bo Jeanes
8257f2a92a
Add version requirements between workspace crates
2022-08-30 17:05:04 +10:00
Bo Jeanes
bfdbf651ba
Add homepage and repository to manifests
2022-08-30 17:01:08 +10:00
Bo Jeanes
e3d4d024ce
Implement basic WiNet-S modbus driver
...
This also splits the project into 3 crates, which are _theoretically_
indepently useful, though the target audience will be very small...
2022-08-30 16:28:33 +10:00
Bo Jeanes
2557d99d9c
Start impl Modbus proto for Sungrow WiNet-S
2022-08-28 11:15:11 +10:00
Bo Jeanes
a537ea0e8e
Update deps, incl released rumqttc
2022-08-27 06:42:12 +10:00
Bo Jeanes
3e926e2b0b
Add pretty_assertions to tests
2022-08-27 06:12:50 +10:00
Bo Jeanes
c300575dc8
Pass with clippy
2022-08-18 09:28:43 +10:00
Bo Jeanes
9e421b91b3
Sloppily implement scale/offset
2022-08-14 18:05:48 +10:00
Bo Jeanes
78d08623a6
Add more tests and parse array/string reg in config
2022-08-14 12:22:06 +10:00
Bo Jeanes
01db290c42
Start adding some tests for config parsing
2022-08-13 15:05:19 +10:00
Bo Jeanes
650e48c70d
Add tracing crates
2022-08-13 13:58:48 +10:00
Bo Jeanes
6bcb0420ec
Start grouping into modules
2022-07-21 17:57:41 +10:00
Bo Jeanes
ca5639b6e4
Refactor register size into value type
2022-07-19 23:13:21 +10:00
Bo Jeanes
a183f62ed3
Implement monitoring holding registers
2022-07-19 21:35:33 +10:00
Bo Jeanes
cb56bcc66c
Async modbus polling
2022-07-18 11:17:45 +10:00
Bo Jeanes
2a7387eb76
Make other Rtu options configurable
2022-07-17 19:02:38 +10:00
Bo Jeanes
fa867cbfe5
Store connection handler in a map db
2022-07-17 18:40:10 +10:00
Bo Jeanes
ba09d6a76a
Awkwardly put into async tasks O_o
2022-07-17 18:14:55 +10:00
Bo Jeanes
6b1b679350
last will
2022-07-17 11:06:00 +10:00
Bo Jeanes
ac7eedb066
Fix README formatting
2022-07-17 10:52:16 +10:00
Bo Jeanes
b398d74154
Rough connectivity and idea
2022-07-17 10:41:56 +10:00
Bo Jeanes
c63072715d
Initial commit based on rumqttc example
2022-07-15 17:11:38 +10:00