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
M2MObservationHandler Class Reference
M2MObservationHandler An interface for handling observation callbacks from different objects. More...
#include <m2mobservationhandler.h>
Inherited by Handler, Handler, Handler, Handler, Handler, and M2MNsdlInterface.
Public Member Functions | |
virtual void | observation_to_be_sent (M2MBase *object, uint16_t obs_number, 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. | |
virtual void | resource_to_be_deleted (const String &resource_name)=0 |
A callback for deleting an NSDL resource. | |
virtual void | value_updated (M2MBase *base, const String &object_name="")=0 |
A callback indicating that the value of the resource object is updated by server. | |
virtual void | remove_object (M2MBase *object)=0 |
A callback for removing an object from the list. | |
virtual void | send_delayed_response (M2MBase *base)=0 |
A delayed response callback to be sent to the server due to a changed response. |
Detailed Description
M2MObservationHandler An interface for handling observation callbacks from different objects.
Definition at line 29 of file m2mobservationhandler.h.
Member Function Documentation
virtual void observation_to_be_sent | ( | M2MBase * | object, |
uint16_t | obs_number, | ||
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.
Implemented in M2MNsdlInterface.
virtual void remove_object | ( | M2MBase * | object ) | [pure virtual] |
A callback for removing an object from the list.
- Parameters:
-
object The M2MObject to be removed.
Implemented in M2MNsdlInterface.
virtual void resource_to_be_deleted | ( | const String & | resource_name ) | [pure virtual] |
A callback for deleting an NSDL resource.
- Parameters:
-
resource_name The name of the observed object whose information needs to be deleted.
Implemented in M2MNsdlInterface.
virtual void send_delayed_response | ( | M2MBase * | base ) | [pure virtual] |
A delayed response callback to be sent to the server due to a changed response.
- Parameters:
-
base The resource sending the response.
Implemented in M2MNsdlInterface.
virtual void value_updated | ( | M2MBase * | base, |
const String & | object_name = "" |
||
) | [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.
Implemented in M2MNsdlInterface.
Generated on Tue Jul 12 2022 12:29:08 by
