#include <m2mobservationhandler.h>
Public Member Functions | |
virtual bool | observation_to_be_sent (M2MBase *object, uint16_t obs_number, const m2m::Vector< uint16_t > &changed_instance_ids, bool send_object=false)=0 |
The observation callback to be sent to the server due to a change in a parameter under observation. More... | |
virtual void | resource_to_be_deleted (M2MBase *base)=0 |
A callback for removing an NSDL resource from the data structures. More... | |
virtual void | value_updated (M2MBase *base)=0 |
A callback indicating that the value of the resource object is updated by server. More... | |
virtual void | remove_object (M2MBase *object)=0 |
A callback for removing an object from the list. More... | |
virtual void | send_delayed_response (M2MBase *base, sn_coap_msg_code_e code=COAP_MSG_CODE_RESPONSE_CHANGED)=0 |
Sends a delayed post response to the server with 'COAP_MSG_CODE_RESPONSE_CHANGED' response code. More... | |
An interface for handling observation callbacks from different objects.
|
pure virtual |
The observation callback to be sent to the server due to a change in a parameter under observation.
object | The observed object whose information needs to be sent. |
obs_number | The observation number. |
changed_instance_ids | A list of changed object instance IDs. |
send_object | Indicates whether the whole object will be sent or not. |
|
pure virtual |
A callback for removing an object from the list.
object | The M2MObject to be removed. |
|
pure virtual |
A callback for removing an NSDL resource from the data structures.
The | M2MBase derived observed object whose information needs to be removed. |
|
pure virtual |
Sends a delayed post response to the server with 'COAP_MSG_CODE_RESPONSE_CHANGED' response code.
base | The resource sending the response. |
code | Response code to be sent. |
|
pure virtual |
A callback indicating that the value of the resource object is updated by server.
base | The object whose value is updated. |
object_name | The name of the updated resource, default is empty. |