Discovery requests needs to be send as Non-Con requests. Recent change
was failing some of the test cases supported by sample apps.
Change-Id: Ic6a701eaabdcf51cc388618c1afc07baefc3362f
Signed-off-by: Sachin Agrawal <sachin.agrawal@intel.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/651
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Shilpa Sodani <shilpa.a.sodani@intel.com>
Reviewed-by: Sakthivel Samidurai <sakthivel.samidurai@intel.com>
Reviewed-by: Erich Keane <erich.keane@intel.com>
OC_HIGH_QOS:OC_LOW_QOS, getReqCB, NULL, 0));
}
OC_HIGH_QOS:OC_LOW_QOS, getReqCB, NULL, 0));
}
-int InitDiscovery(OCQualityOfService qos)
{
OCStackResult ret;
OCCallbackData cbData;
{
OCStackResult ret;
OCCallbackData cbData;
szQueryUri);
ret = OCDoResource(NULL, OC_REST_GET, szQueryUri, 0, 0,
szQueryUri);
ret = OCDoResource(NULL, OC_REST_GET, szQueryUri, 0, 0,
- discoveryReqConnType, ((qos == OC_HIGH_QOS) ? OC_HIGH_QOS: OC_LOW_QOS),
+ discoveryReqConnType, OC_LOW_QOS,
&cbData, NULL, 0);
if (ret != OC_STACK_OK)
{
&cbData, NULL, 0);
if (ret != OC_STACK_OK)
{
- if(TEST_CASE == TEST_NON_CON_OP)
- {
- InitDiscovery(OC_LOW_QOS);
- }
- else if(TEST_CASE == TEST_CON_OP)
- {
- InitDiscovery(OC_HIGH_QOS);
- }
timeout.tv_sec = 0;
timeout.tv_nsec = 100000000L;
timeout.tv_sec = 0;
timeout.tv_nsec = 100000000L;
int InitPutRequest(OCQualityOfService qos);
int InitGetRequest(OCQualityOfService qos);
int InitPostRequest(OCQualityOfService qos);
int InitPutRequest(OCQualityOfService qos);
int InitGetRequest(OCQualityOfService qos);
int InitPostRequest(OCQualityOfService qos);
-int InitDiscovery(OCQualityOfService qos);
/* Function to retrieve ip address, port no. of the server
* and query for the operations to be performed.
/* Function to retrieve ip address, port no. of the server
* and query for the operations to be performed.