Simulated product dispenser
Fork of mbed-cloud-workshop-connect-HTS221 by
M2MNsdlObserver Class Reference
Observer class for informing NSDL callback to the state machine. More...
#include <m2mnsdlobserver.h>
Inherited by M2MInterfaceImpl.
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 ()=0 |
Informs that client bootstrapping is done. | |
virtual void | bootstrap_finish ()=0 |
Informs that client bootstrap data has been received and final bootstrap finish message has been handled. | |
virtual void | bootstrap_wait ()=0 |
Informs that client bootstrapping is waiting for message to be sent. | |
virtual void | bootstrap_error_wait (const char *reason)=0 |
Informs that client bootstrapping is waiting for error message to be sent. | |
virtual void | bootstrap_error (const char *reason)=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 | ( | ) | [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 | ( | const char * | reason ) | [pure virtual] |
Informs that some error occured during bootstrapping.
- Parameters:
-
reason,Error string explaining the failure reason
Implemented in M2MInterfaceImpl.
virtual void bootstrap_error_wait | ( | const char * | reason ) | [pure virtual] |
Informs that client bootstrapping is waiting for error message to be sent.
- Parameters:
-
reason,Error description.
Implemented in M2MInterfaceImpl.
virtual void bootstrap_finish | ( | ) | [pure virtual] |
Informs that client bootstrap data has been received and final bootstrap finish message has been handled.
Implemented in M2MInterfaceImpl.
virtual void bootstrap_wait | ( | ) | [pure virtual] |
Informs that client bootstrapping is waiting for message to be sent.
- Parameters:
-
security_object,M2MSecurity Object which contains information about LWM2M server fetched from bootstrap server.
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 19:12:20 by 1.7.2