mirror of
https://github.com/lumapu/ahoy.git
synced 2025-06-25 05:46:59 +02:00
prototype webapi to get info, improved pwr limit
This commit is contained in:
parent
c915e44557
commit
028aedb788
6 changed files with 188 additions and 99 deletions
|
@ -69,7 +69,7 @@ class Inverter {
|
|||
uint8_t type; // integer which refers to inverter type
|
||||
byteAssign_t* assign; // type of inverter
|
||||
uint8_t listLen; // length of assignments
|
||||
uint16_t powerLimit; // limit power output
|
||||
uint16_t powerLimit[2]; // limit power output
|
||||
uint8_t devControlCmd; // carries the requested cmd
|
||||
bool devControlRequest; // true if change needed
|
||||
serial_u serial; // serial number as on barcode
|
||||
|
@ -82,7 +82,8 @@ class Inverter {
|
|||
|
||||
Inverter() {
|
||||
ts = 0;
|
||||
powerLimit = -1; // 65535 W Limit -> unlimited
|
||||
powerLimit[0] = -1; // 65535 W Limit -> unlimited
|
||||
powerLimit[1] = 0x0100; // 0x0000 --> set temporary , 0x0100 --> set persistent
|
||||
devControlRequest = false;
|
||||
devControlCmd = 0xff;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue