Example #1
0
        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();
		}
Example #2
0
void Header::SetDefaultResponseHeader(const Header &aRequestHeader)
{
    Init(OT_COAP_TYPE_ACKNOWLEDGMENT, OT_COAP_CODE_CHANGED);
    SetMessageId(aRequestHeader.GetMessageId());
    SetToken(aRequestHeader.GetToken(), aRequestHeader.GetTokenLength());
}
Example #3
0
 Message() {
     SetMessageId();
 }