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
M2MNsdlObserver Class Reference
Observer class for informing NSDL callback to the state machine. More...
#include <m2mnsdlobserver.h>
Inherited by M2MInterfaceImpl, TestObserver, and TestObserver.
Public Member Functions | |
virtual void | coap_message_ready (uint8_t *data_ptr, uint16_t data_len, sn_nsdl_addr_s *address_ptr)=0 |
Informs that coap message is ready. | |
virtual void | client_registered (M2MServer *server_object)=0 |
Informs that client is registered successfully. | |
virtual void | registration_updated (const M2MServer &server_object)=0 |
Informs that client registration is updated successfully. | |
virtual void | registration_error (uint8_t error_code, bool retry=false)=0 |
Informs that some error occured during registration. | |
virtual void | client_unregistered ()=0 |
Informs that client is unregistered successfully. | |
virtual void | bootstrap_done (M2MSecurity *security_object)=0 |
Informs that client bootstrapping is done. | |
virtual void | bootstrap_error ()=0 |
Informs that some error occured during bootstrapping. | |
virtual void | coap_data_processed ()=0 |
Informs that received data has been processed. | |
virtual void | value_updated (M2MBase *base)=0 |
Callback informing that the value of the resource object is updated by server. |
Detailed Description
Observer class for informing NSDL callback to the state machine.
Definition at line 29 of file m2mnsdlobserver.h.
Member Function Documentation
virtual void bootstrap_done | ( | M2MSecurity * | security_object ) | [pure virtual] |
Informs that client bootstrapping is done.
- Parameters:
-
security_object,M2MSecurity Object which contains information about LWM2M server fetched from bootstrap server.
Implemented in M2MInterfaceImpl.
virtual void bootstrap_error | ( | ) | [pure virtual] |
Informs that some error occured during bootstrapping.
Implemented in M2MInterfaceImpl.
virtual void client_registered | ( | M2MServer * | server_object ) | [pure virtual] |
Informs that client is registered successfully.
- Parameters:
-
server_object,Server object associated with registered server.
Implemented in M2MInterfaceImpl.
virtual void client_unregistered | ( | ) | [pure virtual] |
Informs that client is unregistered successfully.
Implemented in M2MInterfaceImpl.
virtual void coap_data_processed | ( | ) | [pure virtual] |
Informs that received data has been processed.
Implemented in M2MInterfaceImpl.
virtual void coap_message_ready | ( | uint8_t * | data_ptr, |
uint16_t | data_len, | ||
sn_nsdl_addr_s * | address_ptr | ||
) | [pure virtual] |
Informs that coap message is ready.
- Parameters:
-
data_ptr,Data object of coap message. data_len,Length of the data object. address_ptr,Address structure of the server.
Implemented in M2MInterfaceImpl.
virtual void registration_error | ( | uint8_t | error_code, |
bool | retry = false |
||
) | [pure virtual] |
Informs that some error occured during registration.
- Parameters:
-
error_code,Error code for registration error retry,Indicates state machine to re-establish connection
Implemented in M2MInterfaceImpl.
virtual void registration_updated | ( | const M2MServer & | server_object ) | [pure virtual] |
Informs that client registration is updated successfully.
- Parameters:
-
server_object,Server object associated with registered server.
Implemented in M2MInterfaceImpl.
virtual void value_updated | ( | M2MBase * | base ) | [pure virtual] |
Callback informing that the value of the resource object is updated by server.
- Parameters:
-
base Object whose value is updated.
Implemented in M2MInterfaceImpl.
Generated on Tue Jul 12 2022 12:29:07 by
