boting ren / Mbed OS BLEClient_mbedDevConn
Embed: (wiki syntax)

« Back to documentation index

M2MReportHandler Class Reference

M2MReportHandler Class Reference

M2MReportHandler. More...

#include <m2mreporthandler.h>

Inherits M2MTimerObserver.

Public Types

enum  
 

Enum defining which write attributes are set.

More...

Public Member Functions

virtual ~M2MReportHandler ()
 Destructor.
void set_under_observation (bool observed)
 Sets that object is under observation.
void set_value (float value)
 Sets the value of the given resource.
void set_notification_trigger (uint16_t obj_instance_id=0)
 Sets notification trigger.
bool parse_notification_attribute (const char *query, M2MBase::BaseType type, M2MResourceInstance::ResourceType resource_type=M2MResourceInstance::OPAQUE)
 Parses the received query for notification attribute.
void set_default_values ()
 Set back to default values.
uint8_t attribute_flags ()
 Return write attribute flags.

Detailed Description

M2MReportHandler.

This class is handles all the observation related operations.

Definition at line 37 of file m2mreporthandler.h.


Member Enumeration Documentation

anonymous enum

Enum defining which write attributes are set.

Definition at line 52 of file m2mreporthandler.h.


Constructor & Destructor Documentation

~M2MReportHandler (  ) [virtual]

Destructor.

Definition at line 47 of file m2mreporthandler.cpp.


Member Function Documentation

uint8_t attribute_flags (  )

Return write attribute flags.

Definition at line 465 of file m2mreporthandler.cpp.

bool parse_notification_attribute ( const char *  query,
M2MBase::BaseType  type,
M2MResourceInstance::ResourceType  resource_type = M2MResourceInstance::OPAQUE 
)

Parses the received query for notification attribute.

Parameters:
queryQuery to be parsed for attributes.
typeType of the Base Object.
resource_typeType of the Resource.
Returns:
true if required attributes are present else false.

Definition at line 112 of file m2mreporthandler.cpp.

void set_default_values (  )

Set back to default values.

Definition at line 373 of file m2mreporthandler.cpp.

void set_notification_trigger ( uint16_t  obj_instance_id = 0 )

Sets notification trigger.

Parameters:
obj_instance_id,Objectinstance id that has changed

Definition at line 90 of file m2mreporthandler.cpp.

void set_under_observation ( bool  observed )

Sets that object is under observation.

Parameters:
Valuefor the observation.
handler,Handlerobject for sending observation callbacks.

Definition at line 52 of file m2mreporthandler.cpp.

void set_value ( float  value )

Sets the value of the given resource.

Parameters:
value,Valueof the observed resource.

Definition at line 64 of file m2mreporthandler.cpp.