void HeightResource::setResourceRepresentation(OCRepresentation &rep)
{
- double tempHeight;
+ double tempHeight = 0.0;
rep.getValue("height", tempHeight);
bool bFlag = true;
int nSleep_time = INTERVAL_FOR_CHECK;
- double nHeight;
+ double nHeight = 0.0;
std::cout << "[HeightSensorAPP] ::" << __func__ << " is called."
<< std::endl;
if (requestFlag & RequestHandlerFlag::ObserverFlag)
{
- pthread_t threadId;
+ pthread_t threadId = {};
cout << "\t\trequestFlag : Observer\n";
g_Observation = 1;
OC::OCPlatform::stopPresence();
}
- catch (std::exception e)
+ catch (std::exception & e)
{
cout << e.what() << endl;
}