Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
A
ATS
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
TST
ATS
Commits
51480bf1
Commit
51480bf1
authored
7 years ago
by
Miguel Angel Reina Ortega
Browse files
Options
Downloads
Plain Diff
Merge branch 'STF531-January' of
https://git.onem2m.org/TST/ATS
into STF531-January
parents
3ec56cab
78e134e6
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
LibOneM2M/OneM2M_Functions.ttcn
+17
-1
17 additions, 1 deletion
LibOneM2M/OneM2M_Functions.ttcn
with
17 additions
and
1 deletion
LibOneM2M/OneM2M_Functions.ttcn
+
17
−
1
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
;
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment