BugID:18057088: Use CON for CoAP notify and resonse
@@ -218,7 +218,7 @@ int CoAPServerMultiCast_send(CoAPContext *context, NetworkAddr *remote, const ch
CoAPMessage_init(&message);
- CoAPMessageType_set(&message, COAP_MESSAGE_TYPE_NON);
+ CoAPMessageType_set(&message, COAP_MESSAGE_TYPE_CON);
CoAPMessageCode_set(&message, COAP_MSG_CODE_POST);
CoAPMessageId_set(&message, CoAPMessageId_gen(context));
tokenlen = CoAPServerToken_get(token);
@@ -251,7 +251,7 @@ int CoAPServerResp_send(CoAPContext *context, NetworkAddr *remote, unsigned char
}
CoAPMessage_init(&response);
- CoAPMessageType_set(&response, COAP_MESSAGE_TYPE_NON);
+ CoAPMessageType_set(&response, COAP_MESSAGE_TYPE_CON);
CoAPMessageCode_set(&response, COAP_MSG_CODE_205_CONTENT);
CoAPMessageId_set(&response, request->header.msgid);
CoAPMessageToken_set(&response, request->token, request->header.tokenlen);
