jaesick.shin [Tue, 31 May 2016 02:30:04 +0000 (11:30 +0900)]
remove not required function and rename the function, const variable.
this patch included
remove not required initialize value and function.
const variables change to define.
all structs move to NSStructs.h file.
Change-Id: Iff87028d731803d75cd4a20ac49e1e361073c323
Signed-off-by: jaesick.shin <jaesick.shin@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/8383
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Uze Choi <uzchoi@samsung.com>
Tested-by: Uze Choi <uzchoi@samsung.com>
KIM JungYong [Mon, 30 May 2016 06:14:38 +0000 (15:14 +0900)]
Renamed variables and functions of Notification consumer.
a couple of variables and function is renamed.
in particular, processing function of queue task in each submodules renamed
to TaskProcessing and thread structure is renamed to NSThread from NSThreadHandle.
and thread join function is added.
Change-Id: Id1508e3f6422318f316ee388cf195217d0823ebd
Signed-off-by: KIM JungYong <jyong2.kim@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/8379
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Uze Choi <uzchoi@samsung.com>
jaesick.shin [Mon, 30 May 2016 00:52:51 +0000 (09:52 +0900)]
implementation NSStopProvider and bug fixed.
this patch included
first, memory copy and free of NSSync, NSConsumer and so on.
second, uregister resource and thread exit.
third, bug fixed about createpayload value is NULL.
Second patch included
first, resolve android build error in proivder jni code.
second, remove duplicated log.
Change-Id: I525efde2c81793a4947a75df1022337dd2766845
Signed-off-by: jaesick.shin <jaesick.shin@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/8375
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Hun-je Yeon <hunje.yeon@samsung.com>
Reviewed-by: Uze Choi <uzchoi@samsung.com>
ch79.cho [Thu, 26 May 2016 08:37:31 +0000 (17:37 +0900)]
Update notificaion message synchronization.
A bug about message synchronization function is fixed.
This function provides for subscribers to receive sync data
which is sent by a subscriber.
Change-Id: Idfa0b242e1a17af7ec88eb43c7b5084d6ceae14d
Signed-off-by: ch79.cho <ch79.cho@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/8351
Reviewed-by: Uze Choi <uzchoi@samsung.com>
Tested-by: Uze Choi <uzchoi@samsung.com>
jaesick.shin [Thu, 26 May 2016 06:17:07 +0000 (15:17 +0900)]
NSDuplicateMessage copy logic not working(bug fixed).
previosuly patch added NSMessage copy logic.
but, that is wrong condition. so copy is not working.
Change-Id: I68d1530d82dca36ec38863cb8b4c9ff14ef352fb
Signed-off-by: jaesick.shin <jaesick.shin@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/8347
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Uze Choi <uzchoi@samsung.com>
jyong2.kim [Thu, 26 May 2016 06:45:21 +0000 (15:45 +0900)]
Fixed bug about Subscription logic on Consumer.
Now, consumer notify all messages of providers to user,
included subscription acceptance message.
but, subscription acceptance message no need for user.
and, in this patch, included deletion of unused comments.
Change-Id: I4e21bece1601492e55d0adb5d2f1bb49dac46277
Signed-off-by: jyong2.kim <jyong2.kim@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/8349
Reviewed-by: Hun-je Yeon <hunje.yeon@samsung.com>
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Uze Choi <uzchoi@samsung.com>
YounghyunJoo [Thu, 26 May 2016 00:32:08 +0000 (09:32 +0900)]
Add "Source" attribute in NSMessage Resource
- source attribute contains message generation information(where it comes)
Change-Id: Ibea94aed6044a18ba5d989cdc5aca7e109400ee9
Signed-off-by: YounghyunJoo <yh_.joo@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/8339
Reviewed-by: Hun-je Yeon <hunje.yeon@samsung.com>
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Uze Choi <uzchoi@samsung.com>
jaesick.shin [Wed, 25 May 2016 11:18:38 +0000 (20:18 +0900)]
Issue fixed about OCEntityHandlerRequest same pointer address.
Modify duplicatation issue about
OCEntityHandlerRequest pointer address
when receiving entityhandler callback.
So, Added NSMessage, OCEntityHandlerRequest copy & free logic.
Change-Id: Ia4a273f11233f11fdfda055af019ab4b3a27db0c
Signed-off-by: jaesick.shin <jaesick.shin@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/8331
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Uze Choi <uzchoi@samsung.com>
YounghyunJoo [Wed, 25 May 2016 08:23:42 +0000 (17:23 +0900)]
Add Memory Cache module for Consumer on Linux.
- by adapting cache adpater, add consumer cache module which uses memory list on linux
Change-Id: I6cc344f0be36aff7ec9045b4ae200b57c8def777
Signed-off-by: YounghyunJoo <yh_.joo@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/8317
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Uze Choi <uzchoi@samsung.com>
ch79.cho [Wed, 25 May 2016 02:44:36 +0000 (11:44 +0900)]
Modify listeners of android sample app to receive subscription and sync data.
The listeners work seperately when requested subscription and sync data
from consumer are delivered.
Change-Id: Ifa637b2e0e03878a4b1ca02b9860e445a4be8685
Signed-off-by: ch79.cho <ch79.cho@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/8315
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Uze Choi <uzchoi@samsung.com>
ch79.cho [Mon, 23 May 2016 04:51:05 +0000 (13:51 +0900)]
Add callback interface and open source license term.
The files for JNI interface are modified to offer callback function
and add open source license term.
Change-Id: I3f9453b37f274b9098117550e530a388b318ac02
Signed-off-by: ch79.cho <ch79.cho@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/8269
Reviewed-by: Uze Choi <uzchoi@samsung.com>
Tested-by: Uze Choi <uzchoi@samsung.com>
ch79.cho [Mon, 23 May 2016 10:40:14 +0000 (19:40 +0900)]
Create android sample app for provider service.
This is a sample application working on notification service.
The applicaion guides how to use APIs of notification service
on android platform.
Change-Id: Ia2fa461ad299a74507ee5898d7f4174f777611b5
Signed-off-by: ch79.cho <ch79.cho@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/8283
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Uze Choi <uzchoi@samsung.com>
jaesick.shin [Mon, 23 May 2016 08:42:27 +0000 (17:42 +0900)]
changed log in provider side
this patch includes log change in notification provider
from printf to NS_LOG and NS_LOG_V.
Change-Id: I4c255d0442165acb93b22c07788d375e27c299a9
Signed-off-by: jaesick.shin <jaesick.shin@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/8279
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Uze Choi <uzchoi@samsung.com>
jyong2.kim [Wed, 18 May 2016 07:49:28 +0000 (16:49 +0900)]
Updated SConscript of Notification service.
gcc build option is changed to c type flag.
gcov build option is added to measure code coverage.
unused command line is deleted.
warning is resolved in NSUtil.c
Change-Id: I13a509ebccf44242cea3e036505fbe7905403f09
Signed-off-by: jyong2.kim <jyong2.kim@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/8211
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Uze Choi <uzchoi@samsung.com>
jyong2.kim [Wed, 18 May 2016 06:46:06 +0000 (15:46 +0900)]
Added Unit Test of Notification service.
Unit test of Notification serivces is added for public APIs on positive case.
Change-Id: Ie658a444b2b7cc6052cb64933f54bfd58ceceb5c
Signed-off-by: jyong2.kim <jyong2.kim@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/8209
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Uze Choi <uzchoi@samsung.com>
jaesick.shin [Wed, 18 May 2016 09:16:44 +0000 (18:16 +0900)]
Clean the warning message in notification service .
This patch is clean the warning code in provider side.
Change-Id: Id9610ebaad4e374818a35eb4982cb40b5dcd9b68
Signed-off-by: jaesick.shin <jaesick.shin@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/8213
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Uze Choi <uzchoi@samsung.com>
jaesick.shin [Wed, 18 May 2016 06:43:01 +0000 (15:43 +0900)]
Notification Service - add Android JNI in provider.
This patch is Add Android JNI in Provider side.
Our Notification support to android platform.
Added 6 source files. other files are related build.
four files - java, two files - jni native interface.c, h.
IoTNotification.java - this is user interface object.
NSMessage.java - notification message object.
NSSync.java - related read operation object.
NSConsumer.java - related Accept operation object.
notificationProvider.c, h - java native interface.
Change-Id: I8a97d5c329e0f05c1582f5ffc4bf51eee318353d
Signed-off-by: jaesick.shin <jaesick.shin@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/8207
Reviewed-by: Uze Choi <uzchoi@samsung.com>
Tested-by: Uze Choi <uzchoi@samsung.com>
jaesick.shin [Tue, 17 May 2016 09:03:56 +0000 (18:03 +0900)]
added cacheadapter interface and memorycache of notification.
this patch included cacheadapter and using the memorycache.
previosuly, we used the only observeid(unique id).
currently, we use the ip in OCDevaddr Struct.
Change-Id: Ie1b3ff6a88b00f83772f2cddd08a186a2122d69f
Signed-off-by: jaesick.shin <jaesick.shin@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/8191
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Uze Choi <uzchoi@samsung.com>
Hun-je Yeon [Tue, 17 May 2016 01:33:08 +0000 (10:33 +0900)]
Merge branch 'master' into notification-service
update the lastest changes of master branch into notification-service branch
Change-Id: I87cbd690cc9e6b752a96edd1967c57c699988836
Signed-off-by: Hun-je Yeon <hunje.yeon@samsung.com>
jyong2.kim [Mon, 9 May 2016 05:21:20 +0000 (14:21 +0900)]
Added Initial version of notification.
This patch is initial version of notification service in IoTivity.
in this patch, included functionality of notification resource creation,
discover, send notification, read and dismiss messages.
Change-Id: I43ff9316d1eff15aabcc817e048f09c811b9a248
Signed-off-by: jyong2.kim <jyong2.kim@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/8077
Reviewed-by: Uze Choi <uzchoi@samsung.com>
Tested-by: Uze Choi <uzchoi@samsung.com>
G S Senthil Kumar [Thu, 12 May 2016 06:49:52 +0000 (12:19 +0530)]
[Simulator] Minor UI changes fixing the IOT-1087.
1. Added UI support to allow the resource type property to be editable
during resource creation from RAML.
2. Added a new dialog to edit the resource name and resource type during
the creation of multiple resource instances from RAML.
3. Removed the native code which forms rt when it is not specified
in RAML. For this case, plugin will pop-up the above mentioned dialog to
get the resource type from user.
Change-Id: I9a7c927fc63e3ff22db62ae07ce23e63ec8e05d8
Signed-off-by: G S Senthil Kumar <senthil.gs@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/8115
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Harish Marappa <h.marappa@samsung.com>
Reviewed-by: Madan Lanka <lanka.madan@samsung.com>
Harish Kumara Marappa [Thu, 21 Apr 2016 16:46:39 +0000 (22:16 +0530)]
Fix for jira issue IOT-1087.
Resource was creating with oic.if.def which is not defined in OIC spec.
Modified the code such that all simulated resource will be having at least
oic.if.baseline interface at any point of time as per 1.0.0 core spec.
Change-Id: I07c6e4513546d1d4be9c0584408801552c5f4ce4
Signed-off-by: Harish Kumara Marappa <h.marappa@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/7877
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Madan Lanka <lanka.madan@samsung.com>
Reviewed-by: Uze Choi <uzchoi@samsung.com>
Tested-by: Uze Choi <uzchoi@samsung.com>
(cherry picked from commit
3cd3700407657c96d02534f6e6be6c2398b97c68)
Reviewed-on: https://gerrit.iotivity.org/gerrit/8047
Philippe Coval [Thu, 3 Mar 2016 17:56:51 +0000 (18:56 +0100)]
tizen: Fixed RHSampleApp project file to use SDK path separator
This MSDOS '\' will break support on non Windows tizen-sdk
Change-Id: I83aaa2529d9d317a9f6406beba40ec6de8fddfcf
Signed-off-by: Philippe Coval <philippe.coval@osg.samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/6147
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Mats Wichmann <mats@osg.samsung.com>
Reviewed-by: JungYong KIM <jyong2.kim@samsung.com>
Reviewed-by: Uze Choi <uzchoi@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/5499
hyuna0213.jo [Thu, 28 Apr 2016 06:45:45 +0000 (15:45 +0900)]
modified the observe cancel logic for CoAP over TCP
if qos is NON_CONFIRMABLE, When observe is unobserved, remove
the callback associated on client side. and when the next notification
comes in from server, reply with RESET message to server.
but in case of CoAP over TCP, RESET message is not supported.
so client have to send Observe request to server with
observe flag = OC_RESOURCE_OBSERVE_DEREGISTER.
Change-Id: I4169546308560caebabb35dbf1b27eb80516ae5b
Signed-off-by: hyuna0213.jo <hyuna0213.jo@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/7957
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Jon A. Cruz <jon@joncruz.org>
Jaewook Jung [Mon, 2 May 2016 07:43:06 +0000 (16:43 +0900)]
change the condition for BLE connected callback
As BLE connected callback means communication on BLE is available for user,
the callback should be called on DescriptorWrite success callback which is the last step
for BLE communication.
However, since there is a case that gatt descriptor can not be found,
the callback needs to be called on ServicesDiscovered callback in this case.
Change-Id: I9d0daa233a1b605e70857d9fcc584f9224f53e03
Signed-off-by: Jaewook Jung <jw0213.jung@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/8025
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Jon A. Cruz <jon@joncruz.org>
hyuna0213.jo [Sun, 8 May 2016 22:18:10 +0000 (07:18 +0900)]
Updated unit test case for CASetNetworkMonitorCallbacks
if LE_ADAPTER is not defined, this will fail.
so this test case needs to be updated.
Change-Id: I48896db9eb8dd70533578954f1f2fb951c08a027
Signed-off-by: hyuna0213.jo <hyuna0213.jo@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/8073
Reviewed-by: David Antler <david.a.antler@intel.com>
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Jon A. Cruz <jon@joncruz.org>
Jihun Ha [Fri, 6 May 2016 02:26:30 +0000 (11:26 +0900)]
Update a logic for POST request in Enrollee implementation
Updated logic/flow:
(1) Parsing the requested attribute like tnn, cd, and tr
(2) Check if the provisioning is completed
(3) Check if the trigger is requested
(4) If the trigger process fails due to some reason, revert an attribute tr
to 0
Change-Id: I1db3bfcd3b0d5593516b7719d64ba23f831ba9bc
Signed-off-by: Jihun Ha <jihun.ha@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/8075
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Madan Lanka <lanka.madan@samsung.com>
Abhishek Sharma [Fri, 30 Oct 2015 09:09:24 +0000 (14:39 +0530)]
Added COAP over TCP feature for Arduino for Transport TCP
Made changes for arduino to support COAP over TCP for Transport TCP
Change-Id: Ifb9c30b1b324cf28c14abb3ebbcb292de31b1fda
Signed-off-by: koushik.girijala <g.koushik@samsung.com>
Signed-off-by: Abhishek Sharma <ce.abhishek@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/3985
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Abhishek Pandey <abhi.siso@samsung.com>
Reviewed-by: Jon A. Cruz <jon@joncruz.org>
jihwan.seo [Mon, 2 May 2016 07:23:40 +0000 (16:23 +0900)]
clean up FreeCARequestInfo of security
- added null checker
- removed duplicated codes with line 133 of header file
Change-Id: I7a7454e29ef2a63cfa9cf3107922e90b56baa313
Signed-off-by: jihwan.seo <jihwan.seo@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/8023
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Jon A. Cruz <jon@joncruz.org>
Reviewed-by: Ashok Babu Channa <ashok.channa@samsung.com>
jihwan.seo [Thu, 28 Apr 2016 02:34:37 +0000 (11:34 +0900)]
added filter related to CoAP option that is not supported.
so many CoAP option is missed in iotivity.
thur, i modified some filter code about it
except for some option assciated with transport layer.
- If-Match, If-None-Match is for PUT method
- Location-Path, Location-Query is for POST Methos.
Change-Id: I7e46932b086d1c4a87f337590415fe32525367c3
Signed-off-by: jihwan.seo <jihwan.seo@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/7955
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Jon A. Cruz <jon@joncruz.org>
Jaewook Jung [Thu, 28 Apr 2016 09:34:07 +0000 (18:34 +0900)]
code clean up for android edr
Change-Id: Ic901a29cecd1376f416b049c71c693b77be0b3a5
Signed-off-by: Jaewook Jung <jw0213.jung@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/7977
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Jon A. Cruz <jon@joncruz.org>
hyuna0213.jo [Fri, 15 Apr 2016 04:31:17 +0000 (13:31 +0900)]
added network monitoring logic in CAUtil
I added the function to monitoring the status of the transport adapter
and connection.
- added connection status monitoring callback.
- modified adapter status monitoring callback parameter.
- modified network interface monitoring logic in ipa adapter.
Change-Id: I1d04e018f7cd54ea069b6257a1c2188bbf266232
Signed-off-by: hyuna0213.jo <hyuna0213.jo@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/7791
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Jon A. Cruz <jon@joncruz.org>
daeken.kwon [Fri, 29 Apr 2016 02:00:45 +0000 (11:00 +0900)]
stdassert.h is not standard-compliant. Change this to assert.h
Change-Id: I7034df1b22b2040815bdc06521921814e5a09998
Signed-off-by: daeken.kwon <daeken.kwon@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/7975
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Jon A. Cruz <jon@joncruz.org>
Jaewook Jung [Thu, 28 Apr 2016 07:53:22 +0000 (16:53 +0900)]
android: update EDR socket info when re-connection
If a EDR client requests connection to an Android EDR server which had been connected before,
the server has to update the socket info of the client on the list.
Otherwise the server tries to read data of a wrong socket object.
Change-Id: I4978455c26f0b6ade9fbf5cd5756a60d038c039e
Signed-off-by: Jaewook Jung <jw0213.jung@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/7959
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Jon A. Cruz <jon@joncruz.org>
hyuna0213.jo [Thu, 21 Apr 2016 00:42:11 +0000 (09:42 +0900)]
fixed build script to test ca api.
currently, blockwise transfer can be supported for ip.
so blockwise transfer unit test has to be included only
in case target transport type is ip or all.
Change-Id: I7501847cbf7f1035d287ba6770838faea122eeca
Signed-off-by: hyuna0213.jo <hyuna0213.jo@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/7863
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Jon A. Cruz <jon@joncruz.org>
Philippe Coval [Mon, 7 Mar 2016 14:48:13 +0000 (15:48 +0100)]
Fixed build issue by Installing missing header OCUtilities.h
Change-Id: Icc5313c48ef95b322526eea169c4b23eab3758a6
Signed-off-by: Philippe Coval <philippe.coval@osg.samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/5581
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Mats Wichmann <mats@osg.samsung.com>
Reviewed-by: Habib Virji <habib.virji@samsung.com>
(cherry picked from commit
aa5f4de4c1f08f1ae20dce9c4bc22ff6ba409e6b)
Reviewed-on: https://gerrit.iotivity.org/gerrit/5563
Markus Jung [Tue, 5 Apr 2016 04:38:40 +0000 (13:38 +0900)]
[IOT-1065][IOT-1069] RC - Tizen: sample application fix
- Correct sample configuration
- Deactivate notification on bundle resource initialization
- Remove BMI related UI for Tizen. Soft-sensors cannot be configered at runtime.
This will be a feature for the next release.
- Removed async bundle activation which is causing crashes in Tizen
Change-Id: Id87a36b1cb27d4267433823494415e35d2c6acee
Signed-off-by: Markus Jung <markus.jung@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/7593
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Uze Choi <uzchoi@samsung.com>
(cherry picked from commit
08ee7c41e9b7bb64243fd1dc1f416e53aad6f1d1)
Reviewed-on: https://gerrit.iotivity.org/gerrit/7623
Reviewed-by: Habib Virji <habib.virji@samsung.com>
Philippe Coval [Fri, 4 Mar 2016 16:06:32 +0000 (17:06 +0100)]
Fixed template syntax to prevent ambiguity with stream operators
This is a minor change but was noticed when trying to build with clang
This message appeared while building using tizen-sdk 2.4.0 Rev4
with imported libs (built with gbs from Tizen:2.4:Mobile repo)
Change-Id: Ib573d5ea9b23b29d6114d1f072210c370859fdec
Signed-off-by: Philippe Coval <philippe.coval@osg.samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/6149
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Habib Virji <habib.virji@samsung.com>
(cherry picked from commit
feee78125dc35f61f2f466096ebf41a764f5ee82)
Reviewed-on: https://gerrit.iotivity.org/gerrit/5565
Philippe Coval [Fri, 11 Mar 2016 12:15:40 +0000 (13:15 +0100)]
tizen: prevent building as seems unsuported on 32bit arch
Let's disable it for Tizen now, like for android or iOS.
Error was observed while building for Tizen:2.3.1:Wearable on i586 or armv7l :
#error "Requires IEEE 754 floating point!"
Change-Id: Ibd7ccbc0e8405aa3cbace45a2a0ae65ce35c87f3
Signed-off-by: Philippe Coval <philippe.coval@osg.samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/6139
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Sanjeev BA <as2902.b@samsung.com>
Reviewed-by: Ziran Sun <ziran.sun@samsung.com>
Reviewed-by: Uze Choi <uzchoi@samsung.com>
(cherry picked from commit
362732ef77005ec2b6a760b51ee7ec6865c94c29)
Reviewed-on: https://gerrit.iotivity.org/gerrit/7905
Philippe Coval [Wed, 13 Apr 2016 18:52:08 +0000 (20:52 +0200)]
tizen: Bump version to 1.1.0
Change-Id: Ia2901ce4335e7a9a2998a098dbebf48668cf4f83
Signed-off-by: Philippe Coval <philippe.coval@osg.samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/7781
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Uze Choi <uzchoi@samsung.com>
(cherry picked from commit
29106ba0518680f4bdfc56b2fec9f094ada05c51)
Reviewed-on: https://gerrit.iotivity.org/gerrit/7907
hyuna0213.jo [Tue, 26 Apr 2016 05:28:23 +0000 (14:28 +0900)]
changed queue destroy logic to delete the remained data in CA
In case of the receive queue in camessagehandler, we don't start
the queue thread because RI supports single thread. accordingly
we have to delete the remained data in CAQueueingThreadDestroy().
Change-Id: I18667b97d97ac83dabcb0affb13b4a593fc15a9f
Signed-off-by: hyuna0213.jo <hyuna0213.jo@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/7921
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Jon A. Cruz <jon@joncruz.org>
jihwan.seo [Mon, 18 Apr 2016 08:25:14 +0000 (17:25 +0900)]
added to checking connection state from CALEGetConstantsValue dynamic.
- it is about BLE server.
- added null checker for some global variable.
Change-Id: I04444e3dac5ab2fb374ee5fdaf0842d4d2034f6d
Signed-off-by: jihwan.seo <jihwan.seo@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/7803
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Jon A. Cruz <jon@joncruz.org>
David Antler [Tue, 26 Apr 2016 18:43:29 +0000 (11:43 -0700)]
Add source files to tinydtls SConscript
Debug options were being stored in an environment variable, which is the
old way of doing things.
Change-Id: Ia525707f6cba918b209b9f94323fa49082577592
Signed-off-by: David Antler <david.a.antler@intel.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/7933
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Jon A. Cruz <jon@joncruz.org>
hyuna0213.jo [Thu, 31 Mar 2016 08:21:06 +0000 (17:21 +0900)]
The TCP port number discovery based UDP multicast message
The TCP port number will be part of the discovery payload.
so the response to the UDP multicast message, should be an UDP unicast
reply containing the TCP port number if TCP adapter is activated.
After receiving the discovery response, the client can use TCP port
number to communicate with the server via CoAP/TCP.
- added tcp port value in policy of discovery payload
- the dynamic use of tcp server port in TCP adapter
- TCP adapter changes to support IPv6
Change-Id: Ie93361abec0287f0f600a791a58e41cf5b381892
Signed-off-by: hyuna0213.jo <hyuna0213.jo@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/7483
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Jon A. Cruz <jon@joncruz.org>
Jaewook Jung [Mon, 11 Apr 2016 05:48:30 +0000 (14:48 +0900)]
code clean up in connection manager
code clean up in connection manager
Change-Id: I842c0f49d87525d28b916e90e54d9afa4dc5ad8e
Signed-off-by: Jaewook Jung <jw0213.jung@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/7731
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: jihwan seo <jihwan.seo@samsung.com>
Reviewed-by: Jon A. Cruz <jon@joncruz.org>
vimala.v [Fri, 1 Apr 2016 11:46:35 +0000 (17:16 +0530)]
[Arduino] Changed write property to Write without response
Change-Id: I879cd15f9acb5cf71e594fbef6ff3e9989dac5fc
Signed-off-by: vimala.v <vimala.v@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/7527
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: jihwan seo <jihwan.seo@samsung.com>
Reviewed-by: Abhishek Sharma <ce.abhishek@samsung.com>
Reviewed-by: Ashok Babu Channa <ashok.channa@samsung.com>
(cherry picked from commit
8152d3ea3f68fa5f676bc4d6c50ecda487a40150)
Reviewed-on: https://gerrit.iotivity.org/gerrit/7603
Reviewed-by: Jon A. Cruz <jon@joncruz.org>
vimala.v [Wed, 6 Apr 2016 10:26:25 +0000 (15:56 +0530)]
[Tizen]Gmainloop context is changed from default to custom context
Change-Id: I6a5813b69d94683ab88a6c21a2c3c882898e4e62
Signed-off-by: vimala.v <vimala.v@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/7641
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Abhishek Sharma <ce.abhishek@samsung.com>
Reviewed-by: Ashok Babu Channa <ashok.channa@samsung.com>
jihwan.seo [Fri, 22 Apr 2016 09:12:49 +0000 (18:12 +0900)]
[JIRA-1086] fixed CoAP uri-Port option filtering issue.
Change-Id: I34921e1485117b189bf3c1dc6d5ca3908cca01a5
Signed-off-by: jihwan.seo <jihwan.seo@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/7893
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Harish Marappa <h.marappa@samsung.com>
Reviewed-by: Ashok Babu Channa <ashok.channa@samsung.com>
Jaewook Jung [Mon, 25 Apr 2016 07:37:02 +0000 (16:37 +0900)]
add removing BWT data when retransmission fails
When retransmission fails(time out), the data in BWT list has to be removed.
Change-Id: Ic94b5f2c8c25604b237383939f31bd30412bb1f9
Signed-off-by: Jaewook Jung <jw0213.jung@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/7901
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Jon A. Cruz <jon@joncruz.org>
Habib Virji [Mon, 11 Apr 2016 22:30:09 +0000 (23:30 +0100)]
IOT-1080 Update rt and if to send array of string over the air
It was being return in form of "oic.if.ll oic.if.baseline". It is now changed to
["oic.if.ll", "oic.if.baseline"]
Change-Id: Ie32a0c2135a6f9994193d6be85fedb7041a68a70
Signed-off-by: Habib Virji <habib.virji@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/7749
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Uze Choi <uzchoi@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/7839
Habib Virji [Thu, 31 Mar 2016 23:01:29 +0000 (00:01 +0100)]
IOT-1018 RD payload handling of uint8_t and uint64_t value
- Setting the value of uint64_t to avoid casting being set wrong.
- Update to helper function to set size of the string.
- ocresource correct payload destroy.
- Removes duplicate MAX_ADDR_STR_SIZE
- Update Publish resource type from oic.wk.rdPub to oic.wk.rdpub.
Change-Id: I3bd13eb0fe52accf1d86da4d8ba0ecebdda79885
Signed-off-by: Habib Virji <habib.virji@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/7503
Reviewed-by: Towhidul Islam <t.islam@samsung.com>
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Jee Hyeok Kim <jihyeok13.kim@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/7743
G S Senthil Kumar [Fri, 22 Apr 2016 08:09:09 +0000 (13:39 +0530)]
Resolved simulator crash issue.
Simulator plug-in crashed due to recent changes in the OCDeviceInfo
structure in platform layer. Handled the changes required in simulater
module.
Change-Id: Ib277d0ed9ff6094f6f48c3c947144954d231bb9a
Signed-off-by: G S Senthil Kumar <senthil.gs@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/7891
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Uze Choi <uzchoi@samsung.com>
Habib Virji [Fri, 8 Apr 2016 10:31:04 +0000 (11:31 +0100)]
IOT-1079 /oic/d & /oic/p to include oic.if.baseline
Added support for /oic/d to add interface information.
Added support in /oic/p to include oic.if.baseline.
Change-Id: I6985548cec4efee4f4ceedd11146e4e9a3ba672a
Signed-off-by: Habib Virji <habib.virji@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/7727
Reviewed-by: Mushfiqul Islam <i.mushfiq@samsung.com>
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-on: https://gerrit.iotivity.org/gerrit/7841
Jaehong Jo [Thu, 21 Apr 2016 05:36:10 +0000 (14:36 +0900)]
Change characteristic user desciption descriptor.
"OIC Node.." chaned to "OCF Node..".
Change-Id: Ifcf4355f58f90e53b06df3a93fb29be383e6c879
Signed-off-by: Jaehong Jo <jaehong.jo@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/7871
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Jon A. Cruz <jon@joncruz.org>
George Nash [Tue, 12 Apr 2016 17:47:08 +0000 (10:47 -0700)]
Clean up warning
This cleans up the warning capture of variable with non-automatic
storage duration
The warning is given when lambda functions are trying to capture
variables that are static or global. The easy fix is to not
capture the variables. They will still be avalible to the lamba
function without the variable capture.
Change-Id: I00890ddf5cf6932d1114ff4ca305905b4b877cc6
Signed-off-by: George Nash <george.nash@intel.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/7761
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Jon A. Cruz <jon@joncruz.org>
hyuna0213.jo [Thu, 21 Apr 2016 02:53:11 +0000 (11:53 +0900)]
added code to close the netlink socket.
added code to close the netlink socket.
Change-Id: Ifbad9db35a9b38a6367f04586a665bc8208eecf4
Signed-off-by: hyuna0213.jo <hyuna0213.jo@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/7865
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Jon A. Cruz <jon@joncruz.org>
jihwan.seo [Thu, 21 Apr 2016 03:18:28 +0000 (12:18 +0900)]
fixed build error issue related TCP Adapter.
some parameter of the callback realted to keepalive was not correct.
Change-Id: I21975c99221a506de722992280d929d446712a28
Signed-off-by: jihwan.seo <jihwan.seo@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/7867
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Jon A. Cruz <jon@joncruz.org>
Jon A. Cruz [Wed, 20 Apr 2016 06:05:16 +0000 (23:05 -0700)]
Fixed odd comment block formatting that was breaking tools.
Corrected odd combination of comment delimiters that was confusing
tools such as Doxygen.
Change-Id: I692513c12c32801d4949cbc03ed2f9cc3ea86774
Signed-off-by: Jon A. Cruz <jon@joncruz.org>
Reviewed-on: https://gerrit.iotivity.org/gerrit/7855
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Tim Kourt <tim.a.kourt@intel.com>
Reviewed-by: Habib Virji <habib.virji@samsung.com>
Reviewed-by: Jee Hyeok Kim <jihyeok13.kim@samsung.com>
Jaehong Jo [Fri, 15 Apr 2016 01:55:05 +0000 (10:55 +0900)]
Modify the potential errors
Added null check
Change-Id: I007b131450e672091d5783c82b56d6a5151439ef
Signed-off-by: Jaehong Jo <jaehong.jo@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/7793
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Jon A. Cruz <jon@joncruz.org>
hekra [Thu, 10 Mar 2016 01:58:19 +0000 (17:58 -0800)]
[IOT-972] add type and interface to platform representation
Change-Id: Ie02a201507ffcc0c6a640846dc57341832ea3158
Signed-off-by: Hugues Ekra <hekra@cisco.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/5655
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Habib Virji <habib.virji@samsung.com>
(cherry picked from commit
22932f7aefc633d90011f8fc474f416305976cfc)
Reviewed-on: https://gerrit.iotivity.org/gerrit/7857
Inga Stotland [Mon, 18 Apr 2016 22:41:52 +0000 (15:41 -0700)]
[IOT-963] Fix maximum URI length
According to core spec, maximum URI length could be up to 256
Change-Id: Ic9037fcca8a6ef49b0695ac5d3515f84aa11c773
Signed-off-by: Inga Stotland <inga.stotland@intel.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/7821
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Habib Virji <habib.virji@samsung.com>
hyuna0213.jo [Tue, 19 Apr 2016 07:28:47 +0000 (16:28 +0900)]
Reorder library link order for connectivity abstraction
An unresolved symbol error for connectivity abstraction occurred
during the Linux link phase. Generally, libraries that depend on
specific libraries should appear earlier in the linker command line.
Change-Id: Ic126e8e03266f4061328018c49037dc658652bfd
Signed-off-by: hyuna0213.jo <hyuna0213.jo@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/7789
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Jon A. Cruz <jon@joncruz.org>
hekra [Tue, 8 Mar 2016 14:26:03 +0000 (06:26 -0800)]
IOT-970: Handle get requests on oic/p and oic/d resources
Change-Id: I6a96e188f7dcb839467c4285c3b4a57871669b78
Signed-off-by: Hugues Ekra <hekra@cisco.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/5553
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Phil Coval <philippe.coval@osg.samsung.com>
Reviewed-by: Habib Virji <habib.virji@samsung.com>
(cherry picked from commit
a51b71c150d30614439dbbe1c3ec0ae01bdefaeb)
Reviewed-on: https://gerrit.iotivity.org/gerrit/7843
Habib Virji [Sat, 26 Mar 2016 22:54:02 +0000 (22:54 +0000)]
IOT-982 Query handling for /oic/res
- By default oic.if.baseline is added for any resource created. All resource
created in OIC should have oic.if.baseline.
- In case query is empty, oic.if.ll as interface query.
- oic.if.ll handler returns all resources which are DISCOVERABLE.
- Same handler handles when query includes oic.if.ll.
- Only oic.if.ll and oic.if.baseline are supported as query param for /oic/res.
- oic.if.baseline handler only responds to query that are baseline interface.
- In case query includes rt but no if param. response is based on matching of rt value.
- It also include rt, if and uri for /oic/res response if it is oic.if.baseline..
Change-Id: Icaeab9f5407e9a02623e31b2d3be4488643c1e7a
Signed-off-by: Habib Virji <habib.virji@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/7365
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-on: https://gerrit.iotivity.org/gerrit/7837
Markus Jung [Mon, 11 Apr 2016 09:23:33 +0000 (18:23 +0900)]
[IOT-994] Fixing crash for parsing arbitrary UTF-8 payload
Avoid the crash by checking whether the cbortype is map.
Fundamentally, no-cbor type payload should be filtered in tinycbor library.
This change can be removed later.
Change-Id: Icde1422c61319d8c5e66675d9ef2b66f30dc4077
Signed-off-by: Markus Jung <markus.jung@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/7737
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Uze Choi <uzchoi@samsung.com>
Reviewed-by: Markus Jung <markus.jung85@gmail.com>
(cherry picked from commit
d237eecb9b581157dee9c3314d5a07091b0078ed)
Reviewed-on: https://gerrit.iotivity.org/gerrit/7835
Reviewed-by: Habib Virji <habib.virji@samsung.com>
Habib Virji [Tue, 5 Apr 2016 00:01:49 +0000 (01:01 +0100)]
IOT-921 OCSetDeviceInfo to update resource type information
OCSaveDeviceInfo to update resource information. The code has been
updated to include this information.
Change-Id: Id30546d0e32f5347875a9346de9699a35d81734e
Signed-off-by: Habib Virji <habib.virji@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/7585
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Markus Jung <markus.jung85@gmail.com>
Reviewed-by: Uze Choi <uzchoi@samsung.com>
(cherry picked from commit
2ccfba677941ada7bc3730538132182ce9fb872d)
Reviewed-on: https://gerrit.iotivity.org/gerrit/7833
Habib Virji [Tue, 5 Apr 2016 18:58:01 +0000 (19:58 +0100)]
IOT-1075 PUT/POST/DELETE for /oic/res, /oic/d, /oic/p returns error
/oic/res. /oic/d and /oic/p returns error when PUT/POST/DELETE is performed on the resource.
Change-Id: Ib40c4d2b5e9263bc4252e3553fa7e30ef21c2a51
Signed-off-by: Habib Virji <habib.virji@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/7625
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Mushfiqul Islam <i.mushfiq@samsung.com>
Reviewed-by: Markus Jung <markus.jung85@gmail.com>
Reviewed-by: Uze Choi <uzchoi@samsung.com>
(cherry picked from commit
10ac37501a95a2ebbeb4e16a873b45d2c8a9a3b4)
Reviewed-on: https://gerrit.iotivity.org/gerrit/7831
Habib Virji [Wed, 23 Mar 2016 21:31:47 +0000 (21:31 +0000)]
[IOT-990] Support for URI comparisons to be case-insenstive
Support for rt or if in the query to be case-insensitive.
JIRA ISSUE: IOT-990
Signed-off-by: Habib Virji <habib.virji@samsung.com>
Change-Id: Ieff5256e25b2232f25dec52e86b356a0682e3241
Reviewed-on: https://gerrit.iotivity.org/gerrit/6237
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
(cherry picked from commit
34df9a3c8865ea31c1bfc2dd18198733ec05f2aa)
Reviewed-on: https://gerrit.iotivity.org/gerrit/7829
Habib Virji [Thu, 24 Mar 2016 14:01:26 +0000 (14:01 +0000)]
[IOT-914] Device ID to be based on DOXM GetDeviceID
Instead of ocstack generating random device id. DOXM id is going to be used.
Change-Id: I1a780f07388ee1fe09e315c2d645f1c8ee5142de
Signed-off-by: Habib Virji <habib.virji@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/6299
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
(cherry picked from commit
eb927a675208f8c2d416f874ed02ed01b8007d2b)
Reviewed-on: https://gerrit.iotivity.org/gerrit/7827
Habib Virji [Fri, 11 Mar 2016 12:37:43 +0000 (12:37 +0000)]
[IOT-921]Return correct resource type in /oic/d
It adds support to add device resource type via API.
Jira Issue: IOT-921
Signed-off-by: Habib Virji <habib.virji@samsung.com>
Change-Id: Ib47f637ff343b5bc8dbce5d5f0cc2b5f1eab46ab
Reviewed-on: https://gerrit.iotivity.org/gerrit/5747
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-on: https://gerrit.iotivity.org/gerrit/7825
Habib Virji [Thu, 17 Mar 2016 13:31:37 +0000 (13:31 +0000)]
[IOT-980] oic.if.ll support for /oic/res
/oic/res currently was supporting only oic.if.baseline.
Support for oic.if.ll has been added. It includes unit test as a callback.
Change-Id: I8b90c7c686b753c5d41191508866b0c23bcc6578
Signed-off-by: Habib Virji <habib.virji@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/6025
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
(cherry picked from commit
8b297671a821177b41e62d39aa4d2d1bb6114235)
Reviewed-on: https://gerrit.iotivity.org/gerrit/7813
Habib Virji [Thu, 10 Mar 2016 17:59:51 +0000 (17:59 +0000)]
[IOT-914] Change format of the device id as text string
DI field was being sent as a byte string over ther wire.
This patch update it to be sent as a string.
ocpayloadparse.c can handle both byte string and text string.
But ocpayloadconvert.c will be sending in text string.
Jira Issue: IOT-914
Signed-off-by: Habib Virji <habib.virji@samsung.com>
Change-Id: I049bf4cff5f2b390e589eb5cf55966e8034838b1
Reviewed-on: https://gerrit.iotivity.org/gerrit/5691
Reviewed-by: Dwarkaprasad Dayama <dwarka.dayama@samsung.com>
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
(cherry picked from commit
d96fb8bee5a4895962f4b8fce8fee0f314bcce3b)
Reviewed-on: https://gerrit.iotivity.org/gerrit/7811
Habib Virji [Thu, 10 Mar 2016 12:03:42 +0000 (12:03 +0000)]
[IOT-979] Correct /oic/d icv field
Currently icv [Spec Version] field was being set as lcv instead of icv.
Change-Id: I3e4930cba42f5474f90f622b28c031a03331053e
Signed-off-by: Habib Virji <habib.virji@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/5685
Reviewed-by: Dwarkaprasad Dayama <dwarka.dayama@samsung.com>
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
(cherry picked from commit
7a893187456a05110f32f730695fa3cf3c58904e)
Reviewed-on: https://gerrit.iotivity.org/gerrit/7809
jihwan.seo [Mon, 18 Apr 2016 09:58:35 +0000 (18:58 +0900)]
fixed EDR crash issue when g_context is deleted.
Change-Id: I7876a3604272ee568b86041d0eeee02158234017
Signed-off-by: jihwan.seo <jihwan.seo@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/7807
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Jaehong Jo <jaehong.jo@samsung.com>
Reviewed-by: Jon A. Cruz <jon@joncruz.org>
jihwan.seo [Mon, 18 Apr 2016 08:33:12 +0000 (17:33 +0900)]
fixed svace issue for CA
- buffer overflow issue in caprotocolmessage.c
- OICfree timing issue in tcp
Change-Id: Ifd1682e485cc415175023b05657e0cd1e33b3cbc
Signed-off-by: jihwan.seo <jihwan.seo@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/7805
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Jon A. Cruz <jon@joncruz.org>
jihwan.seo [Fri, 15 Apr 2016 03:12:07 +0000 (12:12 +0900)]
modified comment related parameter in BT JNI interface.
Change-Id: I8958e7f1353a5b69787ec6973c706c1c0f5caace
Signed-off-by: jihwan.seo <jihwan.seo@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/7795
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Jon A. Cruz <jon@joncruz.org>
hyuna0213.jo [Wed, 16 Mar 2016 07:15:12 +0000 (16:15 +0900)]
Added unit test cases for cablockwisetransfer.c api
Added unit test cases for cablockwisetransfer.c api.
Change-Id: Idf6570aebc4bd5f15202d6f0236b126199768851
Signed-off-by: hyuna0213.jo <hyuna0213.jo@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/5947
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Jon A. Cruz <jon@joncruz.org>
Jay Sharma [Thu, 7 Apr 2016 14:49:24 +0000 (20:19 +0530)]
[Easy-Setup] Fixed Android-Arduino issue.
Change-Id: I0b8d4b918047f0a95b1d1b45e79bf439d458700c
Signed-off-by: Jay Sharma <jay.sharma@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/7661
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Madan Lanka <lanka.madan@samsung.com>
(cherry picked from commit
3cd1ecdf06dc7c0cb2c788103ca9dea5e9f7df9f)
Reviewed-on: https://gerrit.iotivity.org/gerrit/7717
Reviewed-by: Jihun Ha <jihun.ha@samsung.com>
George Nash [Thu, 14 Apr 2016 18:28:07 +0000 (11:28 -0700)]
Removed un-needed build script
In resource/csdk/connectivity/ the SConscript tries to
build sample code that does not exist. Since the samples
do not exist the build warns that the samples SConscript
can not be found.
Change-Id: I96cc0b2c8a53f9431a7188089075d8f85e75cbe5
Signed-off-by: George Nash <george.nash@intel.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/7787
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Jon A. Cruz <jon@joncruz.org>
jihwan.seo [Thu, 14 Apr 2016 08:36:27 +0000 (17:36 +0900)]
fixed svace issue in ocstack
added null check.
Change-Id: I772835707ea7b8dfb32bb12bec90c965bc349928
Signed-off-by: jihwan.seo <jihwan.seo@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/7783
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Jon A. Cruz <jon@joncruz.org>
Jaehong Jo [Tue, 12 Apr 2016 07:50:03 +0000 (16:50 +0900)]
Changed to be used only once to create input stream.
Fixed a problem that generates whenever read data.
Change-Id: Ib07dac59dce69f8305926d3b7ad5597a582d0a4d
Signed-off-by: Jaehong Jo <jaehong.jo@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/7755
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Jon A. Cruz <jon@joncruz.org>
Inga Stotland [Tue, 12 Apr 2016 18:22:06 +0000 (11:22 -0700)]
[Resource-container] Fix member var initialization
Incorrect type was used causing build error.
Change-Id: I701096c3b6512546847cf4e120430f690e920453
Signed-off-by: Inga Stotland <inga.stotland@intel.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/7759
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: George Nash <george.nash@intel.com>
Reviewed-by: Markus Jung <markus.jung85@gmail.com>
Reviewed-by: Uze Choi <uzchoi@samsung.com>
hunje.yeon [Thu, 14 Apr 2016 05:27:11 +0000 (14:27 +0900)]
Folder structuring of notification-service
This commit makes folder outline of IoTivity notification service
Change-Id: I5015aab65adb917ff433350e0e895034c9758aff
Signed-off-by: hunje.yeon <hunje.yeon@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/7767
Reviewed-by: Uze Choi <uzchoi@samsung.com>
Tested-by: Uze Choi <uzchoi@samsung.com>
George Nash [Mon, 11 Apr 2016 17:09:37 +0000 (10:09 -0700)]
Cleaned up the unused-parameter warning
unused parameters are typically the result of 3 things
- they are from a call back and are not needed for that instance of
the call back
- introduced to maintain backward compatability for older APIs
- variables only used in debug mode for debuging reasons
Many projects that try to build without warnings cast the unused
paramenter to a void type to prevent the warning. The cast can
be added to the project using a #define.
The OC_UNUSED macro has been added to the octypes header file
to be used when in one of the three given scenarios.
In addition the macro has been used to prevent the unused-parameter
warning for several files.
Change-Id: Ib10967df4a135f0863aebbca41479d8e62d1a27b
Signed-off-by: George Nash <george.nash@intel.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/7757
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Jon A. Cruz <jon@joncruz.org>
George Nash [Tue, 12 Apr 2016 20:19:02 +0000 (13:19 -0700)]
Compiler warning clean up
sign-compare warning:
IotivityandZigbeeClient.c compares as size_t and int
one value comes from sizeof the other from snprinf
the larger size_t value is cast to int to remove the
warning
discarded-qualifiers warning:
in the cablockwisetransfer files the CAUpdateBlockOptionItems
function is passing one of its const input parameters to
the CANegotiateBlockSize function but the input parameter is
not const in CANegotiatedBlockSize. Since CANegotiatedBlockSize
does not actually change the pdu input pointer so it is changed
to const.
type-limits warning:
The variable nextStartIndex is of type unsigned int. The value
is assigned from a call to find_first_of that returns a size_t
value. If the the value string::npos is returned (0xFFFFFFFFFFFFFFFF)
on a 64-bit system it would be cast to (0x00000000FFFFFFFF) so the
compairison (nextStartIndex == string::npos) will always be false
and the RCSInvalidParameterException will never be thrown even if
string::npos was returned from the find_first_of call.
Change-Id: I949ad7c9ab20f9b220fbe46235e27a5c87aa487f
Signed-off-by: George Nash <george.nash@intel.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/7763
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Jon A. Cruz <jon@joncruz.org>
jihwan.seo [Mon, 11 Apr 2016 05:50:41 +0000 (14:50 +0900)]
combined getting JNI methodID for several connectivity type.
- BLE : caedrserver.c / caedrutils.c
- EDR : caleserver.c / caleutils.h / caleutils.c,
- NFC : canfcserver.c
Change-Id: Ibe936afb320e5112bfc221d6b5a16f53b170210a
Signed-off-by: jihwan.seo <jihwan.seo@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/7733
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Jon A. Cruz <jon@joncruz.org>
jihwan.seo [Thu, 7 Apr 2016 07:38:35 +0000 (16:38 +0900)]
fixed calling getService failure without SDP.
- modified setter/getter related to state in common.
- cleaned up state management for connection / send state.
Change-Id: I5d136ae502e506f62a3bea83a6b32023219ec2d3
Signed-off-by: jihwan.seo <jihwan.seo@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/7653
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Jon A. Cruz <jon@joncruz.org>
Jay Sharma [Mon, 28 Mar 2016 11:27:00 +0000 (16:57 +0530)]
[Resource-Encapsulation] [IOT-1026] Fixed Jira Issue
Change-Id: I216c46097a85590ba927fe74c56b74b848a5611f
Signed-off-by: Jay Sharma <jay.sharma@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/6293
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Uze Choi <uzchoi@samsung.com>
(cherry picked from commit
c055363558b594263a523f54d5016463d64eb872)
Reviewed-on: https://gerrit.iotivity.org/gerrit/7679
Jaehong Jo [Mon, 21 Mar 2016 13:58:54 +0000 (22:58 +0900)]
Add simplebase app for Android
It can be tested Message and Bluetooth APIs.
Change-Id: I6315c0eba8d22d5c152fbe3de74ad8a1abda387f
Signed-off-by: Jaehong Jo <jaehong.jo@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/6137
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Jon A. Cruz <jon@joncruz.org>
wonny [Mon, 28 Mar 2016 12:53:58 +0000 (21:53 +0900)]
Modified SceneManager Unittest
- SceneTest : fix not creating scene
- RemoteSceneActionTest : fix setup() logic
Change-Id: Ie923d766e5da8ac7a3798f5a7febfb9404e7a2d5
Signed-off-by: wonny <jw_wonny.cha@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/7401
Reviewed-by: Uze Choi <uzchoi@samsung.com>
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
(cherry picked from commit
84454c74e9654fac18391d0ed8e6d3bdec1f59a6)
Reviewed-on: https://gerrit.iotivity.org/gerrit/7683
G S Senthil Kumar [Wed, 6 Apr 2016 10:12:12 +0000 (15:42 +0530)]
[Simulator] Changed the vendor name of eclipse plugins.
Updated the vendor name from IoTivity to IoTivity.org.
Change-Id: Ifeccaf02696bd85797c1bab80ae77e13f49b8ea5
Signed-off-by: G S Senthil Kumar <senthil.gs@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/7637
Reviewed-by: Uze Choi <uzchoi@samsung.com>
Tested-by: Uze Choi <uzchoi@samsung.com>
(cherry picked from commit
279a56eb75931fae41299986b7108a91406a45ae)
Reviewed-on: https://gerrit.iotivity.org/gerrit/7739
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
G S Senthil Kumar [Mon, 14 Mar 2016 09:53:16 +0000 (15:23 +0530)]
Resolved simulator build failure issue.
Included a necessary header file(algorithm) to prevent build failures
when using boost version(1.46).
Change-Id: I4c6e9829d6b1a59f7c6f745551ef92ee6514df26
Signed-off-by: G S Senthil Kumar <senthil.gs@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/5873
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Madan Lanka <lanka.madan@samsung.com>
(cherry picked from commit
7d8d21aeb1cd01a7f8890a71f0fac97544afff81)
Reviewed-on: https://gerrit.iotivity.org/gerrit/7703
Reviewed-by: Uze Choi <uzchoi@samsung.com>
Hun-je Yeon [Thu, 1 Oct 2015 14:17:54 +0000 (23:17 +0900)]
[IOT-1019] Fix for jira issue
Add console out when Resource Container started.
Change-Id: If262e26fcee0e9ce52fada57fec03eccf47fc69f
Signed-off-by: Hun-je Yeon <hunje.yeon@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/6289
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Minji Park <minjii.park@samsung.com>
Reviewed-by: Uze Choi <uzchoi@samsung.com>
(cherry picked from commit
51917e8752f9e7de02f885a65da38fe7e8e9a136)
Reviewed-on: https://gerrit.iotivity.org/gerrit/7689
wonny [Wed, 23 Mar 2016 06:44:24 +0000 (15:44 +0900)]
(IOT-1006) modified sceneCollection
resolved jira issue IOT-1006
This issue is caused by checking sceneName existed or not.
modified checking logic.
Change-Id: I6ef17e1ef9c7182852ea783e71ed57dd7b81efbe
Signed-off-by: wonny <jw_wonny.cha@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/6205
Reviewed-by: JungYong KIM <jyong2.kim@samsung.com>
Reviewed-by: Uze Choi <uzchoi@samsung.com>
Tested-by: Uze Choi <uzchoi@samsung.com>
(cherry picked from commit
dfcdec1141bab876f45f841c0afaff0b28a2be34)
Reviewed-on: https://gerrit.iotivity.org/gerrit/7699
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Markus Jung [Thu, 31 Mar 2016 07:39:54 +0000 (16:39 +0900)]
[IOT-1052] Resource container fixes
Resource container fixes:
- Using strncat instead of strcat and including a length check for
configured paths.
- Checks for non-null references in Configuration.cpp
- Member initializiation in BundleInfoInternal.cpp
Signed-off-by: Markus Jung <markus.jung@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/7509
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Madan Lanka <lanka.madan@samsung.com>
Reviewed-by: JungHo Kim <jhyo.kim@samsung.com>
Conflicts:
service/resource-container/src/Configuration.cpp
Change-Id: Ifb4c50a76b22e7c2b06465187c90a8328eda5a90
Signed-off-by: uzchoi <uzchoi@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/7715
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
coderhyme [Fri, 8 Apr 2016 01:33:15 +0000 (18:33 -0700)]
Fixed failed tests of RE cache module.
The cause was calling a method not mocked.
Change-Id: I74e20d34d793085e9888f634bb1a5e060f09e0ee
Signed-off-by: coderhyme <jhyo.kim@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/7709
Reviewed-by: JungYong KIM <jyong2.kim@samsung.com>
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Uze Choi <uzchoi@samsung.com>
(cherry picked from commit
4fa510cdc72a7412fcae654d031b7d3bff9b1800)
Reviewed-on: https://gerrit.iotivity.org/gerrit/7725
wonny [Wed, 23 Mar 2016 05:57:19 +0000 (14:57 +0900)]
(IOT-1014) modified sceneCollectionResource
resolved jira issue IOT-1014
When scene execute, this issue is caused by not adding scene name
in SceneCollectionResource.
modified parameter in execute API.
Change-Id: I0c78bcd9523f2f425832c0d4934a1b9abd560d81
Signed-off-by: wonny <jw_wonny.cha@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/6199
Reviewed-by: JungYong KIM <jyong2.kim@samsung.com>
Reviewed-by: Uze Choi <uzchoi@samsung.com>
Tested-by: Uze Choi <uzchoi@samsung.com>
(cherry picked from commit
53b841669ce6f838d0f964191b42657dbf84b56b)
Reviewed-on: https://gerrit.iotivity.org/gerrit/7697
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
HyunJun Kim [Tue, 8 Mar 2016 23:16:49 +0000 (08:16 +0900)]
Add collection payload to send a request
for including each resource information(attributes).
- Client side can send a message
which each resource information is stored in one message.
Change-Id: I45a65dc66dfcec9288b858864b6c83906d341756
Signed-off-by: HyunJun Kim <hyunjun2.kim@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/5583
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Phil Coval <philippe.coval@osg.samsung.com>
Reviewed-by: Habib Virji <habib.virji@samsung.com>
(cherry picked from commit
8d222b6e6aa9c73a12e07d23385b23cc22b8debd)
Reviewed-on: https://gerrit.iotivity.org/gerrit/7705
Reviewed-by: Uze Choi <uzchoi@samsung.com>
G S Senthil Kumar [Wed, 23 Mar 2016 13:06:44 +0000 (18:36 +0530)]
Fix for jira IOT-1042.
Resolving the issue of incorrectly shown allowed values in
"Modify Array Attribute Value" UI dialog of Service Provider Plug-in.
Change-Id: Ie652d5bc1185f51d2c52a55b72ded68e38c32664
Signed-off-by: G S Senthil Kumar <senthil.gs@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/6227
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Madan Lanka <lanka.madan@samsung.com>
(cherry picked from commit
d2d8a8af2478b16bb85b9e56234adfdbace188b3)
Reviewed-on: https://gerrit.iotivity.org/gerrit/7695
Reviewed-by: Uze Choi <uzchoi@samsung.com>
G S Senthil Kumar [Thu, 24 Mar 2016 10:15:11 +0000 (15:45 +0530)]
Fix for Jira IOT-1044.
Resolved UI issues which occurred when changing attribute values
from Simulator plug-ins in Eclipse Mars IDE.
Change-Id: Ibd2e0c7c5cfc314dddaba551958a86258d3188f0
Signed-off-by: G S Senthil Kumar <senthil.gs@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/6267
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Madan Lanka <lanka.madan@samsung.com>
(cherry picked from commit
c310e8bc34ea435ec8a7a5a5487f7341e61493e1)
Reviewed-on: https://gerrit.iotivity.org/gerrit/7693
Reviewed-by: Uze Choi <uzchoi@samsung.com>