Dawn Framework 1.0
Universal data acquisition framework for embedded systems
Public Member Functions | List of all members
dawn::wakaama_internal::ClientRuntime Class Reference

Wakaama client context and object registry runtime. More...

#include <client.hxx>

Public Member Functions

 ClientRuntime (CProtoWakaama &owner)
 Construct runtime state for a Wakaama protocol owner.
 
 ~ClientRuntime ()
 Close the Wakaama context and release owned object allocations.
 
int build (const std::vector< ObjectBinding * > &objects)
 Build built-in and descriptor-backed LwM2M objects.
 
int configure (const char *endpoint)
 Configure the Wakaama client endpoint and registered objects.
 
lwm2m_context_t * context () const
 Return the underlying Wakaama client context.
 
void destroy (const std::vector< ObjectBinding * > &objects)
 Release built-in and descriptor-backed LwM2M objects.
 
security_instance_sfindSecurityInstance (uint16_t securityInstanceId) const
 Find a Security object instance by instance ID.
 
void handlePacket (uint8_t *buffer, size_t length, void *session)
 Deliver one received packet into the Wakaama client context.
 
int openContext (void *userdata)
 Open the Wakaama client context with transport callback userdata.
 
bool ready () const
 Return true when the Wakaama client has completed registration.
 
bool recoverFromBootstrapWedge ()
 Nudge a registration-failed client (parked in STATE_BOOTSTRAP_REQUIRED with no bootstrap server) back to re-registration.
 
int step (time_t *timeout)
 Run one Wakaama state-machine step.
 

Detailed Description

Wakaama client context and object registry runtime.

Definition at line 22 of file client.hxx.

Member Function Documentation

◆ recoverFromBootstrapWedge()

bool ClientRuntime::recoverFromBootstrapWedge ( )

Nudge a registration-failed client (parked in STATE_BOOTSTRAP_REQUIRED with no bootstrap server) back to re-registration.

Allocation-free. Returns true if it kicked the client.

Definition at line 274 of file client.cxx.

Here is the caller graph for this function:

The documentation for this class was generated from the following files: