Documentation
¶
Index ¶
- Constants
- Variables
- func AnalyzeEnergyHistory(lastLimitEntries []*parameter, test bool)
- func Callback(serialNumber string, data map[string]interface{})
- func FormatByteBuffer(header string, b []byte) string
- func FormatBytes(header string, b []byte, bufferLength int, modSpace int, max int, ...) string
- func InitDatabase()
- func InitEcoflow()
- func InitMqtt(user, password string)
- func ListDevices()
- func LoadConfig(file string)
- func ReadCurrentFlow() ([]*parameter, error)
- func SetCarACOn(sn string, turnOn bool)
- func SetEnvironmentPowerConsumption(value float64)
- func StartFlow(test bool)
- type MQTTWrapperLogger
- type Mapping
- type Topic
Constants ¶
View Source
const DefaultIntermediateSize = 15
View Source
const DefaultLoopSeconds = 120
View Source
const DefaultMaxTries = 120
View Source
const DefaultSeconds = 60
View Source
const SELECT_GET_ALL_PARAMETER = `` /* 1708-byte string literal not displayed */
Variables ¶
View Source
var BuildDate string
BuildDate build date
View Source
var BuildVersion = "vDevelopment"
BuildVersion build version
View Source
var CloseIfStuck = false
View Source
var FlowLoopSeconds = DefaultSeconds
View Source
var LoopSeconds = DefaultSeconds
View Source
var MqttDisable = false
View Source
var OutLoopSeconds = DefaultLoopSeconds
View Source
var StatLoopMinutes = time.Duration(5)
View Source
var Version string
Version component version
Functions ¶
func AnalyzeEnergyHistory ¶
func AnalyzeEnergyHistory(lastLimitEntries []*parameter, test bool)
func FormatByteBuffer ¶
FormatByteBuffer formats the byte array to an output with a hexadecimal part, a ASCII part and a EBCDIC converted part of the same data
func FormatBytes ¶
func FormatBytes(header string, b []byte, bufferLength int, modSpace int, max int, showLength bool) string
FormatBytes formats a given byte array and modulo space operator. The modulo space defines the the possition a space is added to the output. The maximum give the maximum characters per line. This function enhance the display with showing the length if showLength is set to true
func ListDevices ¶
func ListDevices()
func LoadConfig ¶
func LoadConfig(file string)
func ReadCurrentFlow ¶
func ReadCurrentFlow() ([]*parameter, error)
func SetCarACOn ¶
func SetEnvironmentPowerConsumption ¶
func SetEnvironmentPowerConsumption(value float64)
Types ¶
type MQTTWrapperLogger ¶
type MQTTWrapperLogger struct {
}
func (*MQTTWrapperLogger) Printf ¶
func (l *MQTTWrapperLogger) Printf(format string, v ...interface{})
func (*MQTTWrapperLogger) Println ¶
func (l *MQTTWrapperLogger) Println(v ...interface{})
Source Files
¶
Click to show internal directories.
Click to hide internal directories.

