mbed client lightswitch demo
Dependencies: mbed Socket lwip-eth lwip-sys lwip
Fork of mbed-client-classic-example-lwip by
M2MObservationHandler Class Reference
M2MObservationHandler An interface for handling observation callbacks from different objects. More...
#include <m2mobservationhandler.h>
Inherited by M2MNsdlInterface.
Public Member Functions | |
virtual void | observation_to_be_sent (M2MBase *object)=0 |
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 |
Callback for deleting an NSDL resource. | |
virtual void | value_updated (M2MBase *base, const String &object_name="")=0 |
Callback indicating that the value of the resource object is updated by server. | |
virtual void | remove_object (M2MBase *object)=0 |
Callback for removing an object from the list. |
Detailed Description
M2MObservationHandler An interface for handling observation callbacks from different objects.
Definition at line 30 of file m2mobservationhandler.h.
Member Function Documentation
virtual void observation_to_be_sent | ( | M2MBase * | object ) | [pure virtual] |
Observation callback to be sent to the server due to a change in a parameter under observation.
- Parameters:
-
object,Observed object whose information needs to be sent.
Implemented in M2MNsdlInterface.
virtual void remove_object | ( | M2MBase * | object ) | [pure virtual] |
Callback for removing an object from the list.
- Parameters:
-
object,M2MObject to be removed.
Implemented in M2MNsdlInterface.
virtual void resource_to_be_deleted | ( | const String & | resource_name ) | [pure virtual] |
Callback for deleting an NSDL resource.
- Parameters:
-
resource_name,Name of the observed object whose information needs to be deleted.
Implemented in M2MNsdlInterface.
virtual void value_updated | ( | M2MBase * | base, |
const String & | object_name = "" |
||
) | [pure virtual] |
Callback indicating that the value of the resource object is updated by server.
- Parameters:
-
base,Object whose value is updated. object_name,Name of the resource which is updated, default is empty.
Implemented in M2MNsdlInterface.
Generated on Tue Jul 12 2022 18:27:28 by 1.7.2