active power limit added via mqtt and setup page

This commit is contained in:
Andreas Schiffler 2022-08-01 21:26:25 +02:00
parent a2c44e1ce8
commit 7ed5a0a9e1
5 changed files with 116 additions and 35 deletions

View file

@ -70,7 +70,8 @@ class Inverter {
byteAssign_t* assign; // type of inverter
uint8_t listLen; // length of assignments
uint16_t powerLimit; // limit power output
bool powerLimitChange; // true if change needed
uint8_t devControlCmd; // carries the requested cmd
bool devControlRequest; // true if change needed
serial_u serial; // serial number as on barcode
serial_u radioId; // id converted to modbus
uint8_t channels; // number of PV channels (1-4)
@ -82,7 +83,7 @@ class Inverter {
Inverter() {
ts = 0;
powerLimit = -1; // 65535 W Limit -> unlimited
powerLimitChange = false;
devControlRequest = false;
}
~Inverter() {