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
10
Merge Requests
10
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
133f8b07
Commit
133f8b07
authored
Aug 22, 2020
by
Jozef Kralik
Committed by
Kishen Maloor
Aug 22, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix cloud certification tests
parent
399ffbdb
Pipeline
#1068
passed with stage
in 1 minute and 36 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
17 additions
and
2 deletions
+17
-2
api/oc_ri.c
api/oc_ri.c
+3
-1
apps/cloud_certification_tests.c
apps/cloud_certification_tests.c
+14
-1
No files found.
api/oc_ri.c
View file @
133f8b07
...
...
@@ -272,6 +272,8 @@ stop_processes(void)
oc_resource_t
*
oc_ri_get_app_resource_by_uri
(
const
char
*
uri
,
size_t
uri_len
,
size_t
device
)
{
if
(
!
uri
||
uri_len
==
0
)
return
NULL
;
int
skip
=
0
;
if
(
uri
[
0
]
!=
'/'
)
skip
=
1
;
...
...
@@ -703,7 +705,7 @@ oc_ri_invoke_coap_entity_handler(void *request, void *response, uint8_t *buffer,
oc_interface_mask_t
iface_query
=
0
,
iface_mask
=
0
;
/* Obtain request uri from the CoAP packet. */
const
char
*
uri_path
;
const
char
*
uri_path
=
NULL
;
size_t
uri_path_len
=
coap_get_header_uri_path
(
request
,
&
uri_path
);
/* Obtain query string from CoAP packet. */
...
...
apps/cloud_certification_tests.c
View file @
133f8b07
...
...
@@ -90,12 +90,25 @@ display_menu(void)
} \
} while (0)
static
void
set_device_custom_property
(
void
*
data
)
{
(
void
)
data
;
oc_rep_set_array
(
root
,
dmn
);
oc_rep_object_array_begin_item
(
dmn
);
oc_rep_set_text_string
(
dmn
,
language
,
"en"
);
oc_rep_set_text_string
(
dmn
,
value
,
manufacturer
);
oc_rep_object_array_end_item
(
dmn
);
oc_rep_close_array
(
root
,
dmn
);
}
static
int
app_init
(
void
)
{
int
ret
=
oc_init_platform
(
manufacturer
,
NULL
,
NULL
);
ret
|=
oc_add_device
(
"/oic/d"
,
device_rt
,
device_name
,
spec_version
,
data_model_version
,
NULL
,
NULL
);
data_model_version
,
set_device_custom_property
,
NULL
);
if
(
ret
||
!
deviceid
)
{
return
ret
;
}
...
...
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