Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: MAX44000 PWM_Tone_Library nexpaq_mdk
Fork of LED_Demo by
M2MReportHandler Class Reference
#include <m2mreporthandler.h>
Inherits M2MTimerObserver.
Public Types | |
enum | |
Enum defining which write attributes are set. More... | |
Public Member Functions | |
virtual | ~M2MReportHandler () |
Destructor. | |
virtual void | set_under_observation (bool observed) |
Sets that object is under observation. | |
virtual 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. | |
virtual bool | parse_notification_attribute (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. | |
Protected Member Functions | |
virtual void | timer_expired (M2MTimerObserver::Type type=M2MTimerObserver::Notdefined) |
Indicates that the timer has expired. |
Detailed Description
This class is handles all the observation related operations.
Definition at line 36 of file m2mreporthandler.h.
Member Enumeration Documentation
anonymous enum |
Enum defining which write attributes are set.
Definition at line 51 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 484 of file m2mreporthandler.cpp.
bool parse_notification_attribute | ( | char *& | query, |
M2MBase::BaseType | type, | ||
M2MResourceInstance::ResourceType | resource_type = M2MResourceInstance::OPAQUE |
||
) | [virtual] |
Parses the received query for notification attribute.
- Parameters:
-
query Query to be parsed for attributes. type Type of the Base Object. resource_type Type of the Resource.
- Returns:
- true if required attributes are present else false.
Definition at line 117 of file m2mreporthandler.cpp.
void set_default_values | ( | ) |
Set back to default values.
Definition at line 392 of file m2mreporthandler.cpp.
void set_notification_trigger | ( | uint16_t | obj_instance_id = 0 ) |
Sets notification trigger.
- Parameters:
-
obj_instance_id,Object instance id that has changed
Definition at line 95 of file m2mreporthandler.cpp.
void set_under_observation | ( | bool | observed ) | [virtual] |
Sets that object is under observation.
- Parameters:
-
Value for the observation. handler,Handler object for sending observation callbacks.
Definition at line 55 of file m2mreporthandler.cpp.
void set_value | ( | float | value ) | [virtual] |
Sets the value of the given resource.
- Parameters:
-
value,Value of the observed resource.
Definition at line 67 of file m2mreporthandler.cpp.
void timer_expired | ( | M2MTimerObserver::Type | type = M2MTimerObserver::Notdefined ) |
[protected, virtual] |
Indicates that the timer has expired.
- Parameters:
-
type The type of the timer that has expired.
Implements M2MTimerObserver.
Definition at line 189 of file m2mreporthandler.cpp.
Generated on Tue Jul 12 2022 12:29:08 by
