28DECLARE_REMOTE_PROTOCOL(Drayton)
32 TEMPLATABLE_VALUE(uint16_t,
address)
33 TEMPLATABLE_VALUE(uint8_t, channel)
34 TEMPLATABLE_VALUE(uint8_t, command)
38 data.
address = this->address_.value(
x...);
39 data.channel = this->channel_.value(
x...);
40 data.command = this->command_.value(
x...);
41 DraytonProtocol().encode(dst, data);
optional< DraytonData > decode(RemoteReceiveData src) override
void encode(RemoteTransmitData *dst, const DraytonData &data) override
void dump(const DraytonData &data) override
Providing packet encoding functions for exchanging data with a remote host.
bool operator==(const DraytonData &rhs) const