v1.9.9-pre-20: fix modbus device id
All checks were successful
Build and release .deb / Release (push) Successful in 56s
All checks were successful
Build and release .deb / Release (push) Successful in 56s
This commit is contained in:
parent
f41e763743
commit
e914f2fd10
3 changed files with 5 additions and 4 deletions
4
Cargo.lock
generated
4
Cargo.lock
generated
|
@ -239,7 +239,7 @@ checksum = "613afe47fcd5fac7ccf1db93babcb082c5994d996f20b8b159f2ad1658eb5724"
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "charge-controller-supervisor"
|
name = "charge-controller-supervisor"
|
||||||
version = "1.9.9-pre-19"
|
version = "1.9.9-pre-20"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"chrono",
|
"chrono",
|
||||||
"clap",
|
"clap",
|
||||||
|
@ -2203,7 +2203,7 @@ dependencies = [
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "tesla-charge-controller"
|
name = "tesla-charge-controller"
|
||||||
version = "1.9.9-pre-19"
|
version = "1.9.9-pre-20"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"chrono",
|
"chrono",
|
||||||
"clap",
|
"clap",
|
||||||
|
|
|
@ -4,7 +4,7 @@ default-members = ["charge-controller-supervisor"]
|
||||||
resolver = "2"
|
resolver = "2"
|
||||||
|
|
||||||
[workspace.package]
|
[workspace.package]
|
||||||
version = "1.9.9-pre-19"
|
version = "1.9.9-pre-20"
|
||||||
|
|
||||||
[workspace.lints.clippy]
|
[workspace.lints.clippy]
|
||||||
pedantic = "warn"
|
pedantic = "warn"
|
||||||
|
|
|
@ -293,7 +293,8 @@ impl Tristar {
|
||||||
tokio_modbus::client::rtu::attach_slave(modbus_serial, slave)
|
tokio_modbus::client::rtu::attach_slave(modbus_serial, slave)
|
||||||
}
|
}
|
||||||
crate::config::Transport::Tcp { ip, port } => {
|
crate::config::Transport::Tcp { ip, port } => {
|
||||||
tokio_modbus::client::tcp::connect((*ip, *port).into()).await?
|
let modbus_tcp = tokio::net::TcpStream::connect((*ip, *port)).await?;
|
||||||
|
tokio_modbus::client::tcp::attach_slave(modbus_tcp, slave)
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue