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
1c8f5e54
Commit
1c8f5e54
authored
Jul 13, 2020
by
Kishen Maloor
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'origin/master' into fargo
Signed-off-by:
Kishen Maloor
<
kishen.maloor@intel.com
>
parents
459aa364
bb53715d
Pipeline
#1018
passed with stage
in 13 minutes and 50 seconds
Changes
3
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
4 deletions
+4
-4
api/oc_server_api.c
api/oc_server_api.c
+1
-1
port/android/oc_config.h
port/android/oc_config.h
+1
-1
swig/swig_interfaces/oc_core_res.i
swig/swig_interfaces/oc_core_res.i
+2
-2
No files found.
api/oc_server_api.c
View file @
1c8f5e54
...
...
@@ -74,7 +74,7 @@ void
oc_send_response
(
oc_request_t
*
request
,
oc_status_t
response_code
)
{
#ifdef OC_SPEC_VER_OIC
if
(
request
->
origin
->
version
==
OIC_VER_1_1_0
)
{
if
(
request
->
origin
&&
request
->
origin
->
version
==
OIC_VER_1_1_0
)
{
request
->
response
->
content_format
=
APPLICATION_CBOR
;
}
else
#endif
/* OC_SPEC_VER_OIC */
...
...
port/android/oc_config.h
View file @
1c8f5e54
...
...
@@ -11,7 +11,7 @@ extern "C" {
typedef
uint64_t
oc_clock_time_t
;
#define OC_CLOCK_CONF_TICKS_PER_SECOND CLOCKS_PER_SEC
#define OC_SPEC_VER_OIC
//
#define OC_SPEC_VER_OIC
/* Security Layer */
/* Max inactivity timeout before tearing down DTLS connection */
#define OC_DTLS_INACTIVITY_TIMEOUT (600)
...
...
swig/swig_interfaces/oc_core_res.i
View file @
1c8f5e54
...
...
@@ -116,7 +116,7 @@ void jni_oc_core_add_device_callback(void *user_data)
jni_callback_data
*
user_data
=
(
jni_callback_data
*
)
malloc
(
sizeof
*
user_data
)
;
user_data-
>
jenv
=
jenv
;
user_data-
>
jcb_obj
=
JCALL1
(
NewGlobalRef
,
jenv
,
$
input
)
;
user_data-
>
cb_valid
=
OC_CALLBACK_VALID_
FOR_A_SINGLE_CALL
;
user_data-
>
cb_valid
=
OC_CALLBACK_VALID_
TILL_SHUTDOWN
;
jni_list_add
(
user_data
)
;
$
1
=
jni_oc_core_add_device_callback
;
$
2
=
user_data
;
...
...
@@ -160,4 +160,4 @@ oc_device_info_t * jni_oc_core_add_new_device1(const char *uri, const char *rt,
%
rename
(
filterResourceByRt
)
oc_filter_resource_by_rt
;
%
rename
(
isDCR
)
oc_core_is_DCR
;
%
include
"oc_core_res.h"
\ No newline at end of file
%
include
"oc_core_res.h"
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