virtual bool M2MObservationHandler::observation_to_be_sent |
( |
M2MBase * |
object, |
|
|
uint16_t |
obs_number, |
|
|
const m2m::Vector< uint16_t > & |
changed_instance_ids, |
|
|
bool |
send_object = false |
|
) |
| |
|
pure virtual |
The observation callback to be sent to the server due to a change in a parameter under observation.
- Parameters
-
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. |
- Returns
- True if the message was send, False if there is already ongoing notification.
virtual void M2MObservationHandler::remove_object |
( |
M2MBase * |
object | ) |
|
|
pure virtual |
A callback for removing an object from the list.
- Parameters
-
virtual void M2MObservationHandler::resource_to_be_deleted |
( |
M2MBase * |
base | ) |
|
|
pure virtual |
A callback for removing an NSDL resource from the data structures.
- Parameters
-
The | M2MBase derived observed object whose information needs to be removed. |
virtual void M2MObservationHandler::send_delayed_response |
( |
M2MBase * |
base | ) |
|
|
pure virtual |
Sends a delayed post response to the server with 'COAP_MSG_CODE_RESPONSE_CHANGED' response code.
- Parameters
-
base | The resource sending the response. |
virtual void M2MObservationHandler::value_updated |
( |
M2MBase * |
base | ) |
|
|
pure virtual |
A callback indicating that the value of the resource object is updated by server.
- Parameters
-
base | The object whose value is updated. |
object_name | The name of the updated resource, default is empty. |
The documentation for this class was generated from the following file: