Skip to content

Instantly share code, notes, and snippets.

@welshdave
welshdave / main.rs
Last active March 1, 2023 13:06
Read/write charge time from FoxESS Hybrid Inverter
/*
This connects to the inverter using https://github.com/3cky/mbusd, a Raspberry Pi & a cheap RS-485 usb adaptor
but it should work if using any modbus TCP to RTU gateway.
Can easily be adapted to use a serial connection (change the client config).
Add to Cargo.toml:
[dependencies]
modbus = "1.0"
*/

Keybase proof

I hereby claim:

  • I am welshdave on github.
  • I am welshdave (https://keybase.io/welshdave) on keybase.
  • I have a public key ASDu4VEWcBiMxggodeGf9g8P1aEdycWB1UA5Vgsmt5IHRAo

To claim this, I am signing this object: