Commit daa16140 authored by ch79.cho's avatar ch79.cho Committed by Uze Choi

[IOT-1903] Change to set single adapter flag for cloud notification

Fixed to set sindle adapter flag such as OC_ADAPTER_IP and OC_ADAPTER_TCP
during address parsing because multiple set of adapters caused an error
from base layer to handle it.

Change-Id: I7754d9d305d8c29f8d775d802164f5ccd761614b
Signed-off-by: default avatarch79.cho <ch79.cho@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/17761Tested-by: default avatarjenkins-iotivity <jenkins@iotivity.org>
Reviewed-by: default avatarJungYong KIM <jyong2.kim@samsung.com>
Reviewed-by: default avatarUze Choi <uzchoi@samsung.com>
parent 6a27f86c
......@@ -502,7 +502,7 @@ OCDevAddr * NSChangeAddress(const char * inputaddress)
if (strstr(inputaddress, "coap+tcp://"))
{
NS_LOG(DEBUG, "address : TCP");
adapter |= OC_ADAPTER_TCP;
adapter = OC_ADAPTER_TCP;
}
else if (strstr(inputaddress, "coaps://"))
{
......@@ -513,7 +513,7 @@ OCDevAddr * NSChangeAddress(const char * inputaddress)
{
NS_LOG(DEBUG, "address : TCP + SECURED");
flags |= OC_FLAG_SECURE;
adapter |= OC_ADAPTER_TCP;
adapter = OC_ADAPTER_TCP;
}
else if (strstr(inputaddress, "coap://"))
{
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment