Message(const std::string &data, const std::string &topic, const std::string &pattern, const std::string &patternData) : topic(topic), data(data), serviceId(serviceId), PatternName(pattern), PatternData(patternData) { SetMessageId(); }
void Header::SetDefaultResponseHeader(const Header &aRequestHeader) { Init(OT_COAP_TYPE_ACKNOWLEDGMENT, OT_COAP_CODE_CHANGED); SetMessageId(aRequestHeader.GetMessageId()); SetToken(aRequestHeader.GetToken(), aRequestHeader.GetTokenLength()); }
Message() { SetMessageId(); }