Simulated product dispenser

Dependencies:   HTS221

Fork of mbed-cloud-workshop-connect-HTS221 by Jim Carver

Embed: (wiki syntax)

« Back to documentation index

M2MNsdlObserver Class Reference

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,M2MSecurityObject 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,Errorstring 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,Errordescription.

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,M2MSecurityObject 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,Serverobject 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,Dataobject of coap message.
data_len,Lengthof the data object.
address_ptr,Addressstructure 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,Errorcode for registration error
retry,Indicatesstate 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,Serverobject 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:
baseObject whose value is updated.

Implemented in M2MInterfaceImpl.