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
M2MInterfaceObserver Class Reference
M2MInterfaceObserver This is an observer class that updates the calling application about various events associated with various Interface operations. More...
#include <m2minterfaceobserver.h>
Inherited by M2MLWClient, MbedClient, MbedClient, MbedClient, TestObserver, and TestObserver.
Public Member Functions | |
virtual void | bootstrap_done (M2MSecurity *server_object)=0 |
A callback indicating that the bootstap has been performed successfully. | |
virtual void | object_registered (M2MSecurity *security_object, const M2MServer &server_object)=0 |
A callback indicating that the device object has been registered successfully to the LWM2M server. | |
virtual void | object_unregistered (M2MSecurity *server_object)=0 |
A callback indicating that the device object has been successfully unregistered from the LWM2M server. | |
virtual void | registration_updated (M2MSecurity *security_object, const M2MServer &server_object)=0 |
A callback indicating that the device object registration has been successfully updated on the LWM2M server. | |
virtual void | error (M2MInterface::Error error)=0 |
A callback indicating that there was an error during the operation. | |
virtual void | value_updated (M2MBase *base, M2MBase::BaseType type)=0 |
A callback indicating that the value of the resource object is updated by the server. |
Detailed Description
M2MInterfaceObserver This is an observer class that updates the calling application about various events associated with various Interface operations.
Also, it informs about various errors that can occur during any of the above operations.
Definition at line 32 of file m2minterfaceobserver.h.
Member Function Documentation
virtual void bootstrap_done | ( | M2MSecurity * | server_object ) | [pure virtual] |
A callback indicating that the bootstap has been performed successfully.
- Parameters:
-
server_object The server object that contains information fetched about the LWM2M server from the bootstrap server. This object can be used to register to the LWM2M server. The object ownership is passed.
virtual void error | ( | M2MInterface::Error | error ) | [pure virtual] |
A callback indicating that there was an error during the operation.
- Parameters:
-
error An error code for the occurred error.
virtual void object_registered | ( | M2MSecurity * | security_object, |
const M2MServer & | server_object | ||
) | [pure virtual] |
A callback indicating that the device object has been registered successfully to the LWM2M server.
- Parameters:
-
security_object The server object on which the device object is registered. The object ownership is passed. server_object An object containing information about the LWM2M server. The client maintains the object.
virtual void object_unregistered | ( | M2MSecurity * | server_object ) | [pure virtual] |
A callback indicating that the device object has been successfully unregistered from the LWM2M server.
- Parameters:
-
server_object The server object from which the device object is unregistered. The object ownership is passed.
virtual void registration_updated | ( | M2MSecurity * | security_object, |
const M2MServer & | server_object | ||
) | [pure virtual] |
A callback indicating that the device object registration has been successfully updated on the LWM2M server.
- Parameters:
-
security_object The server object on which the device object registration updated. The object ownership is passed. server_object An object containing information about the LWM2M server. The client maintains the object.
virtual void value_updated | ( | M2MBase * | base, |
M2MBase::BaseType | type | ||
) | [pure virtual] |
A callback indicating that the value of the resource object is updated by the server.
- Parameters:
-
base The object whose value is updated. type The type of the object.
Generated on Tue Jul 12 2022 12:29:07 by
