pub struct VictronGx {
pub serial_number: String,
/* private fields */
}Fields§
§serial_number: StringImplementations§
Source§impl VictronGx
impl VictronGx
pub async fn new( client_id: &str, host: &str, port: u16, serial_number: &str, ) -> Result<Self>
pub async fn shutdown(&self)
pub async fn get_ac_input(&self) -> AcSpec
pub async fn get_ac_output(&self) -> AcSpec
pub async fn get_batteries_dc(&self) -> Vec<(u16, BatteryDC)>
Sourcepub async fn get_battery_summary(&self) -> BatterySummary
pub async fn get_battery_summary(&self) -> BatterySummary
Returns a summary of all batteries (average voltage, average temperature, total power)
pub async fn get_pv_inverters(&self) -> Vec<(u16, PvInverter)>
Sourcepub async fn get_pv_inverter_summary(&self) -> PvInverterSummary
pub async fn get_pv_inverter_summary(&self) -> PvInverterSummary
Returns a summary of all pv inverters (total power)
pub async fn set_ac_power_setpoint(&self)
pub async fn get_ess(&self) -> Ess
pub async fn ess_set_setpoint(&self, value: f64) -> Result<()>
pub async fn send_mqtt(&self) -> Result<()>
Auto Trait Implementations§
impl Freeze for VictronGx
impl !RefUnwindSafe for VictronGx
impl Send for VictronGx
impl Sync for VictronGx
impl Unpin for VictronGx
impl !UnwindSafe for VictronGx
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more