Merge "Patch 1 :Added Arduino Due support Patch 2 :Modified code for review comments...
authorPatrick Lankswert <patrick.lankswert@intel.com>
Thu, 28 Aug 2014 00:25:36 +0000 (17:25 -0700)
committerGerrit Code Review <gerrit@oicreview.vlan14.01.org>
Thu, 28 Aug 2014 00:25:37 +0000 (17:25 -0700)
1  2 
csdk/stack/src/occollection.c

@@@ -152,13 -123,12 +152,13 @@@ ValidateQuery (const unsigned char *que
      }
      else
      {
 -        *rtParam = rtPtr;
 +        if (CheckRTParamSupport((OCResource *)resource, rtPtr) == OC_STACK_OK)
 +            *rtParam = rtPtr;
 +        else
 +            return OC_STACK_INVALID_QUERY;
      }
-     OC_LOG_V(INFO, TAG, "Query params: IF = %d, RT = %s\n", *ifParam, *rtParam);
+     OC_LOG_V(INFO, TAG, "Query params: IF = %d, RT = %s", *ifParam, *rtParam);
  
 -    // TODO: Validate that the resource supports specified IF param
 -    // TODO: Validate that the resource supports specified RT param
      return OC_STACK_OK;
  }
  static OCStackResult BuildRootResourceJSON(OCResource *resource, OCEntityHandlerRequest *ehRequest)