mirror of
https://github.com/lumapu/ahoy.git
synced 2025-05-12 08:26:38 +02:00
added command queue
+ command queue + feedback from inverter for actual power limit via InfoCmd -> SystemConfigPara (0x05) + REST API will enqueue a new info command + change in power limit will enqueue infocm to get actual power limit + actual power limit is available under mqtt topic <TOPIC>/<NAME>/ch0/PowerLimit ALWAYS in percent + Firmware information will be requested automatically up on start of dtu
This commit is contained in:
parent
76f2de853c
commit
51fbe7868c
8 changed files with 202 additions and 129 deletions
|
@ -19,13 +19,10 @@ class HmSystem {
|
|||
RadioType Radio;
|
||||
typedef BUFFER BufferType;
|
||||
BufferType BufCtrl;
|
||||
InfoCmdType NextInfoCmd; // For cmd-queue FIFO with one place
|
||||
InfoCmdType InfoCmd; // For cmd-queue FIFO with one place
|
||||
//DevControlCmdType DevControlCmd;
|
||||
|
||||
HmSystem() {
|
||||
mNumInv = 0;
|
||||
InfoCmd = RealTimeRunData_Debug; // default case
|
||||
}
|
||||
~HmSystem() {
|
||||
// TODO: cleanup
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue