Skip to content
Snippets Groups Projects
Commit 8cd75e94 authored by Miguel Angel Reina Ortega's avatar Miguel Angel Reina Ortega
Browse files

Correction for deregistration within f_cse_postamble_deleteResourcesCSE

parent 0c52a6ca
No related branches found
No related tags found
No related merge requests found
...@@ -1062,20 +1062,22 @@ module OneM2M_Functions { ...@@ -1062,20 +1062,22 @@ module OneM2M_Functions {
} }
if(not(v_deregistrationPerformed)) { if(not(v_deregistrationPerformed)) {
//Deregistration by Registree (IUT) - Send trigger message for deregistration if(vc_localRemoteCseIndex != -1) {
v_utRequest.requestPrimitive.to_ := f_getLocalResourceAddress(vc_localRemoteCseIndex); //Deregistration by Registree (IUT) - Send trigger message for deregistration
f_sendUtPrimitive(v_utRequest, v_action & f_getLocalResourceAddress(vc_localRemoteCseIndex)); v_utRequest.requestPrimitive.to_ := f_getLocalResourceAddress(vc_localRemoteCseIndex);
f_sendUtPrimitive(v_utRequest, v_action & f_getLocalResourceAddress(vc_localRemoteCseIndex));
tc_ac.start;
alt { tc_ac.start;
[] mccPortIn.receive(mw_request(mw_delete(f_getLocalResourceAddress(vc_localRemoteCseIndex)))) -> value vc_request { alt {
tc_ac.stop; [] mccPortIn.receive(mw_request(mw_delete(f_getLocalResourceAddress(vc_localRemoteCseIndex)))) -> value vc_request {
f_processDeleteRequestPrimitive(vc_request.primitive.requestPrimitive); tc_ac.stop;
mccPortIn.send(f_getMsgOutPrimitive(m_response(vc_response.primitive.responsePrimitive))); f_processDeleteRequestPrimitive(vc_request.primitive.requestPrimitive);
log(__SCOPE__&": INFO: Deregistration performed successfully"); mccPortIn.send(f_getMsgOutPrimitive(m_response(vc_response.primitive.responsePrimitive)));
} log(__SCOPE__&": INFO: Deregistration performed successfully");
[] tc_ac.timeout { }
log(__SCOPE__&": INFO: No deregistration performed"); [] tc_ac.timeout {
log(__SCOPE__&": INFO: No deregistration performed");
}
} }
} }
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment