ConfigurationUnitInfo unit[] =
{
{ "all", "All attributes", "/oic/con" },
- { "r", "Region", "/oic/con" },
- { "st", "System Time", "/oic/con"},
+ { "n", "Device Name", "/oic/con"},
{ "loc", "Location", "/oic/con"},
+ { "locn", "Location Name", "/oic/con"},
+ { "r", "Region", "/oic/con" },
{ "c","Currency", "/oic/con" } };
for (int i = 0; i < NUMCONFUNIT; i++)
return newUri;
}
- void ThingsConfiguration::onDeleteActionSet(const HeaderOptions& headerOptions,
- const OCRepresentation& rep, const int eCode, std::string conf)
+ void ThingsConfiguration::onDeleteActionSet(const HeaderOptions& /*headerOptions*/,
+ const OCRepresentation& /*rep*/, const int /*eCode*/, std::string conf)
{
std::shared_ptr < OCResource > resource = getResource(conf);
std::string host = getHostFromURI(oit->getUri());
- tempResource = OCPlatform::constructResourceObject(host, uri, CT_ADAPTER_IP, true,
- oit->getResourceTypes(), m_if);
+ try
+ {
+ tempResource = OCPlatform::constructResourceObject(host, uri, CT_ADAPTER_IP, true,
+ oit->getResourceTypes(), m_if);
- p_resources.push_back(tempResource);
+ p_resources.push_back(tempResource);
+ } catch (std::exception& e)
+ {
+ std::cout << "Exception: " << e.what() << std::endl;
+ }
}
// Send GET messages to the child resources in turn.