Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DeviceInfo ¶
type DeviceInfo struct {
Name string // Device name
Address string // BLE MAC address
RSSI int16 // Signal strength
}
DeviceInfo represents discovered BLE device information
type Info ¶
type Info struct {
Chemistry string // Battery chemistry (e.g., "LiFePO4")
NominalVoltage float64 // Nominal voltage
CapacityAh float64 // Full capacity in amp-hours
DeviceStrings []string // ASCII identity strings from the device (model, hw version, date)
}
Info represents battery/BMS information
type Status ¶
type Status struct {
Voltage float64 // Total battery voltage in volts
Current float64 // Current in amperes (positive=charging, negative=discharging)
SOC int // State of Charge percentage (0-100)
SOH int // State of Health percentage (0-100)
Temperature float64 // Average temperature in Celsius
Temperatures []int // Individual temperature sensor readings in Celsius
CellCount int // Number of cells in series
Cells []Cell // Individual cell data
UpdatedAt time.Time // Last update timestamp
}
Status represents the overall battery status
Click to show internal directories.
Click to hide internal directories.