29DECLARE_REMOTE_PROTOCOL(Dooya)
33 TEMPLATABLE_VALUE(uint32_t,
id)
34 TEMPLATABLE_VALUE(uint8_t, channel)
35 TEMPLATABLE_VALUE(uint8_t, button)
36 TEMPLATABLE_VALUE(uint8_t, check)
40 data.
id = this->id_.value(
x...);
41 data.channel = this->channel_.value(
x...);
42 data.button = this->button_.value(
x...);
43 data.check = this->check_.value(
x...);
44 DooyaProtocol().encode(dst, data);
void encode(RemoteTransmitData *dst, const DooyaData &data) override
optional< DooyaData > decode(RemoteReceiveData src) override
void dump(const DooyaData &data) override
Providing packet encoding functions for exchanging data with a remote host.
bool operator==(const DooyaData &rhs) const