-OCStackResult nmfindResource(const std::string& host , const std::string& resourceName);
-void onObserve(const OCRepresentation& rep , const int& eCode , const int& sequenceNumber);
+OCStackResult nmfindResource(const std::string &host , const std::string &resourceName);
+void onObserve(const OCRepresentation &rep , const int &eCode , const int &sequenceNumber);
{
DBG("OBSERVE RESULT:");
DBG("\tSequenceNumber: %d" , sequenceNumber);
printAttributeMap(attributeMap);
{
DBG("OBSERVE RESULT:");
DBG("\tSequenceNumber: %d" , sequenceNumber);
printAttributeMap(attributeMap);
// Local function to get representation of light resource
void getLightRepresentation(std::shared_ptr< OCResource > resource)
{
// Local function to get representation of light resource
void getLightRepresentation(std::shared_ptr< OCResource > resource)
{
{
DBG("DISCOVERED Resource:");
DBG("\tURI of the resource: %s" , resource->uri().c_str());
DBG("\tHost address of the resource: %s" , resource->host().c_str());
{
DBG("DISCOVERED Resource:");
DBG("\tURI of the resource: %s" , resource->uri().c_str());
DBG("\tHost address of the resource: %s" , resource->host().c_str());