mbed client lightswitch demo

Dependencies:   mbed Socket lwip-eth lwip-sys lwip

Fork of mbed-client-classic-example-lwip by Austin Blackstone

Embed: (wiki syntax)

« Back to documentation index

M2MObservationHandler Class Reference

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,Observedobject 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,M2MObjectto 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,Nameof 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,Objectwhose value is updated.
object_name,Nameof the resource which is updated, default is empty.

Implemented in M2MNsdlInterface.