Skip to content
Snippets Groups Projects

Stf531 polling channel

Merged Miguel Angel Reina Ortega requested to merge STF531-POLLING_CHANNEL into master
+ 628
25
Compare changes
  • Side-by-side
  • Inline
Files
@@ -1587,6 +1587,42 @@ module OneM2M_Functions {
} //end f_cse_notifyProcedure_noNotification Handler
/**
* @desc Message exchange for notification
* @param p_requestPrimitive Notify request to be used for the notification
* @verdict
*/
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;
mccPort.send(m_request(v_request));
tc_ac.start;
alt {
[] mccPort.receive(mw_response(mw_responsePrimitive(int2000, mw_primitiveContentNotification(mw_contentNotification_any)))) -> value vc_response {
tc_ac.stop;
}
[] mccPort.receive(mw_response(mw_responsePrimitiveKO)) {
tc_ac.stop;
setverdict(inconc, __SCOPE__&":INFO: Error while performing notification");
}
[] mccPort.receive {
tc_ac.stop;
setverdict(inconc, __SCOPE__&":INFO: Unexpected message received");
}
[] tc_ac.timeout {
setverdict(inconc, __SCOPE__&":INFO: No answer while performing notification");
}
}
f_checkCseSimuStatus();
} //end f_cse_notifyProcedure_notify
/**
* @desc Checking of notification primitiveContent
* @param p_requestPrimitive Received Notification request
* @param p_primitiveContent Expected primitiveContent in the notification
Loading