Change-Id: Iab02bb30bb8a4fde666974f98ff78741aa7d9720
Signed-off-by: Jay Sharma <jay.sharma@samsung.com>
Signed-off-by: Arya Kumar <arya.kumar@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/1052
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Uze Choi <uzchoi@samsung.com>
startPut(g_curResource);
break;
case DELETE:
- startDelete(g_curResource);
+ try {
+ startDelete(g_curResource);
+ }catch(OCException e) {
+ std::cout<< "Caught OCException [Code: "<<e.code()<<" Reason: "<<e.reason()<<std::endl;
+ }
break;
default:
std::cout << "Invalid input, please try again" << std::endl;
public:
TempHumidResource() :
- m_temp(0), m_humid(0), m_uri("/a/TempHumSensor")
+ m_temp(0), m_humid(0), m_uri("/a/TempHumSensor"), m_resourceHandle(NULL)
{
}