cargo build --release --target=aarch64-unknown-linux-musl
F:\rust\ups_monitor_rust>pscp -scp F:\rust\ups_monitor_rust\target\
aarch64-unknown-linux-musl\release\ups_monitor_rust [email protected]:/usr/bin/
root@Rpi:/usr/bin# ups_monitor_rust
output just look like
Debug: PowerMonitor
{
Voltage = 8.204V,
Shunt_Voltage = 528µV,
Current = 1.730A,
Power = 711mW
}
Debug: PowerMonitor
{
Voltage = 8.204V,
Shunt_Voltage = 525µV,
Current = 1.720A,
Power = 706mW
}
Debug: PowerMonitor
{
Voltage = 8.204V,
Shunt_Voltage = 545µV,
Current = 1.786A,
Power = 706mW
}