#include "zigbee_wrapper.h"
#include "utlist.h"
#include "oic_malloc.h"
+#include "ocstack.h"
+#include "logger.h"
+
+#define TAG "pluginlist"
static PIPluginBase * pluginList = NULL;
LL_DELETE(resourceList, resource);
+ OCStackResult result = OCDeleteResource(resource->piResource.resourceHandle);
+ if(result != OC_STACK_OK)
+ {
+ OC_LOG_V(ERROR, TAG, "Failed to delete resource with error: %d", result);
+ return result;
+ }
+
OICFree (resource->piResource.uri);
if (plugin->type == PLUGIN_ZIGBEE)
{