Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
TST
ATS
Commits
51480bf1
Commit
51480bf1
authored
Jan 17, 2018
by
Miguel Angel Reina Ortega
Browse files
Merge branch 'STF531-January' of
https://git.onem2m.org/TST/ATS
into STF531-January
parents
3ec56cab
78e134e6
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
1 deletion
+17
-1
LibOneM2M/OneM2M_Functions.ttcn
LibOneM2M/OneM2M_Functions.ttcn
+17
-1
No files found.
LibOneM2M/OneM2M_Functions.ttcn
View file @
51480bf1
...
...
@@ -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
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment