Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
I
iotivity-lite
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
41
Issues
41
List
Boards
Labels
Service Desk
Milestones
Merge Requests
12
Merge Requests
12
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
IoTivity
iotivity-lite
Commits
af448aac
Commit
af448aac
authored
Jul 08, 2020
by
Marek Szkowron
Committed by
Kishen Maloor
Jul 14, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update rts and rts-m properties
parent
c5ce7c9a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
1 deletion
+10
-1
apps/server_rules.c
apps/server_rules.c
+10
-1
No files found.
apps/server_rules.c
View file @
af448aac
...
...
@@ -725,6 +725,7 @@ register_resources(void)
oc_link_t
*
sm1
=
oc_new_link
(
res_scenemember1
);
oc_collection_add_link
(
res_scenecol1
,
sm1
);
oc_collection_add_mandatory_rt
(
res_scenecol1
,
"oic.wk.scenemember"
);
oc_collection_add_supported_rt
(
res_scenecol1
,
"oic.wk.scenemember"
);
oc_resource_set_properties_cbs
(
res_scenecol1
,
get_scenecol_properties
,
NULL
,
set_scenecol_properties
,
NULL
);
...
...
@@ -739,6 +740,7 @@ register_resources(void)
oc_link_t
*
sc1
=
oc_new_link
(
res_scenecol1
);
oc_collection_add_link
(
res_scenelist
,
sc1
);
oc_collection_add_mandatory_rt
(
res_scenelist
,
"oic.wk.scenecollection"
);
oc_collection_add_supported_rt
(
res_scenelist
,
"oic.wk.scenecollection"
);
oc_add_collection
(
res_scenelist
);
...
...
@@ -788,6 +790,7 @@ register_resources(void)
oc_link_set_interfaces
(
ric1
,
OC_IF_BASELINE
|
OC_IF_A
);
oc_collection_add_link
(
res_ruleinputcol
,
ric1
);
oc_collection_add_mandatory_rt
(
res_ruleinputcol
,
"oic.r.switch.binary"
);
oc_collection_add_supported_rt
(
res_ruleinputcol
,
"oic.r.switch.binary"
);
oc_add_collection
(
res_ruleinputcol
);
...
...
@@ -803,6 +806,7 @@ register_resources(void)
oc_link_t
*
rac1
=
oc_new_link
(
res_ruleaction
);
oc_collection_add_link
(
res_ruleactioncol
,
rac1
);
oc_collection_add_mandatory_rt
(
res_ruleactioncol
,
"oic.r.rule.action"
);
oc_collection_add_supported_rt
(
res_ruleactioncol
,
"oic.r.rule.action"
);
oc_add_collection
(
res_ruleactioncol
);
...
...
@@ -814,6 +818,7 @@ register_resources(void)
oc_resource_bind_resource_type
(
res_rule
,
"oic.r.rule"
);
oc_resource_set_discoverable
(
res_rule
,
true
);
oc_link_t
*
r1
=
oc_new_link
(
res_ruleexpression
);
oc_collection_add_link
(
res_rule
,
r1
);
...
...
@@ -823,8 +828,12 @@ register_resources(void)
oc_link_t
*
r3
=
oc_new_link
(
res_ruleactioncol
);
oc_collection_add_link
(
res_rule
,
r3
);
oc_collection_add_mandatory_rt
(
res_rule
,
"oic.r.rule.expression"
);
oc_collection_add_mandatory_rt
(
res_rule
,
"oic.r.rule.inputcollection"
);
oc_collection_add_mandatory_rt
(
res_rule
,
"oic.r.rule.actioncollection"
);
oc_collection_add_supported_rt
(
res_rule
,
"oic.r.rule.expression"
);
oc_collection_add_supported_rt
(
res_rule
,
"oic.r.rule.input"
);
oc_collection_add_supported_rt
(
res_rule
,
"oic.r.rule.input
collection
"
);
oc_collection_add_supported_rt
(
res_rule
,
"oic.r.rule.actioncollection"
);
oc_add_collection
(
res_rule
);
...
...
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