Set correct timeout for DevControlCommand
This commit is contained in:
parent
ace5c33518
commit
a8ee8afb17
@ -15,6 +15,8 @@ ActivePowerControlCommand::ActivePowerControlCommand(uint64_t target_address, ui
|
||||
udpateCRC(CRC_SIZE); // 2 byte crc
|
||||
|
||||
_payload_size = 18;
|
||||
|
||||
setTimeout(2000);
|
||||
}
|
||||
|
||||
void ActivePowerControlCommand::setActivePowerLimit(float limit, PowerLimitControlType type)
|
||||
|
||||
@ -6,6 +6,8 @@ DevControlCommand::DevControlCommand(uint64_t target_address, uint64_t router_ad
|
||||
{
|
||||
_payload[0] = 0x51;
|
||||
_payload[9] = 0x81;
|
||||
|
||||
setTimeout(1000);
|
||||
}
|
||||
|
||||
void DevControlCommand::udpateCRC(uint8_t len)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user