Commit 51480bf1 authored by Miguel Angel Reina Ortega's avatar Miguel Angel Reina Ortega

Merge branch 'STF531-January' of https://git.onem2m.org/TST/ATS into STF531-January

parents 3ec56cab 78e134e6
......@@ -1919,7 +1919,23 @@ module OneM2M_Functions {
* @desc Cse altstep for config 02 on CSE1 (AE1 as master)
*/
altstep a_cse_cf02_cse1() runs on CseSimu {
var MsgIn v_request;
var ResponsePrimitive v_response;
var PrimitiveContent v_remoteResource; //localresource
var integer v_localResourceIndex;
var integer v_resourceIndex;
[] mccPortIn.receive(mw_request(mw_create)) -> value v_request {
v_remoteResource := f_cse_generateLocalResource(v_request.primitive.requestPrimitive.primitiveContent, f_getResourceIndex(v_request.primitive.requestPrimitive.to_), v_request.primitive.requestPrimitive.resourceType);
v_localResourceIndex := f_setLocalResource(v_remoteResource, v_request.primitive.requestPrimitive.resourceType, f_getResourceIndex(v_request.primitive.requestPrimitive.to_));
v_response := valueof(m_responsePrimitive(int2001,v_request.primitive.requestPrimitive.requestIdentifier));
v_response.from_ := PX_CSE1_ID;
v_response.to_ := v_request.primitive.requestPrimitive.from_;
v_response.primitiveContent := vc_localResourcesList[v_localResourceIndex].resource;
mccPortIn.send(m_response(v_response));
}
[] mccPortIn.receive {
log(__SCOPE__&": WARNING: Unexpected message received");
repeat;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment