33DECLARE_REMOTE_PROTOCOL(Nexa)
37 TEMPLATABLE_VALUE(uint32_t, device)
38 TEMPLATABLE_VALUE(uint8_t, group)
39 TEMPLATABLE_VALUE(uint8_t,
state)
40 TEMPLATABLE_VALUE(uint8_t, channel)
41 TEMPLATABLE_VALUE(uint8_t, level)
44 data.
device = this->device_.value(
x...);
45 data.group = this->group_.value(
x...);
46 data.state = this->state_.value(
x...);
47 data.channel = this->channel_.value(
x...);
48 data.level = this->level_.value(
x...);
49 NexaProtocol().encode(dst, data);
void dump(const NexaData &data) override
void zero(RemoteTransmitData *dst) const
void encode(RemoteTransmitData *dst, const NexaData &data) override
void one(RemoteTransmitData *dst) const
optional< NexaData > decode(RemoteReceiveData src) override
Providing packet encoding functions for exchanging data with a remote host.
bool operator==(const NexaData &rhs) const