Skip to content

Commit

Permalink
Make /oic/p and /oic/d not discoverable in server_certification_tests…
Browse files Browse the repository at this point in the history
… application
  • Loading branch information
SiMet committed Apr 22, 2021
1 parent 5d0a572 commit 137c690
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions apps/server_certification_tests.c
Original file line number Diff line number Diff line change
Expand Up @@ -944,6 +944,12 @@ register_resources(void)
oc_add_collection(col);
PRINT("\tResources added to collection.\n");
#endif /* OC_COLLECTIONS */

oc_resource_t* device_resource = oc_core_get_resource_by_index(OCF_D, DEVICE);
oc_resource_set_observable(device_resource, false);

oc_resource_t* platform_resource = oc_core_get_resource_by_index(OCF_P, DEVICE);
oc_resource_set_observable(platform_resource, false);
}

static void
Expand Down

0 comments on commit 137c690

Please sign in to comment.