modified the observe cancel logic for CoAP over TCP
authorhyuna0213.jo <hyuna0213.jo@samsung.com>
Thu, 28 Apr 2016 06:45:45 +0000 (15:45 +0900)
committerJon A. Cruz <jon@joncruz.org>
Tue, 10 May 2016 05:59:48 +0000 (05:59 +0000)
commit654dc04c0c8bca7cb17736cf2adce39967d0e766
tree22cae55ff9e756f8fb229cb303d42cc97b99d481
parent02842b31e3adc1d8cc02bf74c4b3925d64b4cb81
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>
resource/csdk/stack/include/octypes.h
resource/csdk/stack/src/ocstack.c