Skip to content
Snippets Groups Projects
Commit 78e134e6 authored by Naum SPASESKI's avatar Naum SPASESKI
Browse files

Extended altstep to accept every other create request in meantime

parent 4c41009d
No related branches found
No related tags found
No related merge requests found
......@@ -1861,7 +1861,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;
......
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