Added first empty classes for DevControl and ParaSet
This commit is contained in:
parent
037f7b9caf
commit
4ff6433b90
8
lib/Hoymiles/src/commands/DevControlCommand.cpp
Normal file
8
lib/Hoymiles/src/commands/DevControlCommand.cpp
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
#include "DevControlCommand.h"
|
||||||
|
|
||||||
|
DevControlCommand::DevControlCommand(uint64_t target_address, uint64_t router_address)
|
||||||
|
: CommandAbstract(target_address, router_address)
|
||||||
|
{
|
||||||
|
_payload[0] = 0x51;
|
||||||
|
_payload[9] = 0x81;
|
||||||
|
}
|
||||||
8
lib/Hoymiles/src/commands/DevControlCommand.h
Normal file
8
lib/Hoymiles/src/commands/DevControlCommand.h
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
#pragma once
|
||||||
|
|
||||||
|
#include "CommandAbstract.h"
|
||||||
|
|
||||||
|
class DevControlCommand : public CommandAbstract {
|
||||||
|
public:
|
||||||
|
DevControlCommand(uint64_t target_address = 0, uint64_t router_address = 0);
|
||||||
|
};
|
||||||
7
lib/Hoymiles/src/commands/ParaSetCommand.cpp
Normal file
7
lib/Hoymiles/src/commands/ParaSetCommand.cpp
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
#include "ParaSetCommand.h"
|
||||||
|
|
||||||
|
ParaSetCommand::ParaSetCommand(uint64_t target_address, uint64_t router_address)
|
||||||
|
: CommandAbstract(target_address, router_address)
|
||||||
|
{
|
||||||
|
_payload[0] = 0x52;
|
||||||
|
}
|
||||||
8
lib/Hoymiles/src/commands/ParaSetCommand.h
Normal file
8
lib/Hoymiles/src/commands/ParaSetCommand.h
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
#pragma once
|
||||||
|
|
||||||
|
#include "CommandAbstract.h"
|
||||||
|
|
||||||
|
class ParaSetCommand : public CommandAbstract {
|
||||||
|
public:
|
||||||
|
ParaSetCommand(uint64_t target_address = 0, uint64_t router_address = 0);
|
||||||
|
};
|
||||||
Loading…
Reference in New Issue
Block a user