OC_HIGH_QOS:OC_LOW_QOS, getReqCB, NULL, 0));
}
-int InitDiscovery(OCQualityOfService qos)
+int InitDiscovery()
{
OCStackResult ret;
OCCallbackData cbData;
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)
{
return 0;
}
- if(TEST_CASE == TEST_NON_CON_OP)
- {
- InitDiscovery(OC_LOW_QOS);
- }
- else if(TEST_CASE == TEST_CON_OP)
- {
- InitDiscovery(OC_HIGH_QOS);
- }
+ InitDiscovery();
timeout.tv_sec = 0;
timeout.tv_nsec = 100000000L;
int InitPutRequest(OCQualityOfService qos);
int InitGetRequest(OCQualityOfService qos);
int InitPostRequest(OCQualityOfService qos);
-int InitDiscovery(OCQualityOfService qos);
+int InitDiscovery();
/* Function to retrieve ip address, port no. of the server
* and query for the operations to be performed.