diff --git a/LibOneM2M/OneM2M_Functions.ttcn b/LibOneM2M/OneM2M_Functions.ttcn index dbf69af274a65b00195a01b779ac8df386f54d2e..ab6ac4393ea4fc83b33b70186fa1079c45a27628 100644 --- a/LibOneM2M/OneM2M_Functions.ttcn +++ b/LibOneM2M/OneM2M_Functions.ttcn @@ -1736,7 +1736,7 @@ module OneM2M_Functions { setverdict(fail, __SCOPE__ & ":ERROR: Notification received but the content doesn't match"); } //Send response in any case - v_responsePrimitive := valueof(m_responseNotification(int2001, omit)); + v_responsePrimitive := valueof(m_responseNotification(int2000, omit)); v_responsePrimitive.requestIdentifier := vc_request.primitive.requestPrimitive.requestIdentifier; mcaPortIn.send(f_getMsgOutPrimitive(m_response(v_responsePrimitive))); } @@ -1768,14 +1768,14 @@ module OneM2M_Functions { [] mcaPortIn.receive(mw_request(mw_notifyResponsePrimitive(p_responsePrimitive))) -> value vc_request { tc_ac.stop; setverdict(pass, __SCOPE__ & ":INFO: Notification received with the expected content"); - v_responsePrimitive := valueof(m_responseNotification(int2001, omit)); + v_responsePrimitive := valueof(m_responseNotification(int2000, omit)); v_responsePrimitive.requestIdentifier := vc_request.primitive.requestPrimitive.requestIdentifier; mcaPortIn.send(f_getMsgOutPrimitive(m_response(v_responsePrimitive))); } [] mcaPortIn.receive(mw_request(mw_notifyResponsePrimitive(?))) -> value vc_request { tc_ac.stop; setverdict(fail, __SCOPE__ & ":ERROR: Notification received but the content doesn't match"); - v_responsePrimitive := valueof(m_responseNotification(int2001, omit)); + v_responsePrimitive := valueof(m_responseNotification(int2000, omit)); v_responsePrimitive.requestIdentifier := vc_request.primitive.requestPrimitive.requestIdentifier; mcaPortIn.send(f_getMsgOutPrimitive(m_response(v_responsePrimitive))); } @@ -1911,13 +1911,12 @@ module OneM2M_Functions { */ function f_cse_notifyProcedure_notify(template RequestPrimitive p_requestPrimitive) runs on CseSimu { // Local variables - var RequestPrimitive v_request; var ResponsePrimitive v_responsePrimitive; var integer v_resourceIndex := -1; - v_request.from_ := PX_CSE1_ID; + p_requestPrimitive.from_ := PX_CSE1_ID; - mccPort.send(f_getMsgOutPrimitive(m_request(v_request))); + mccPort.send(f_getMsgOutPrimitive(m_request(valueof(p_requestPrimitive)))); tc_ac.start; alt { [] mccPort.receive(mw_response(mw_responsePrimitive(int2000, mw_primitiveContentNotification(mw_contentNotification_any)))) -> value vc_response {