9#include "object_binding.hxx"
16namespace wakaama_internal
35 int build(
const std::vector<ObjectBinding *> &objects);
39 void destroy(
const std::vector<ObjectBinding *> &objects);
51 int step(time_t *timeout);
67 void handlePacket(uint8_t *buffer,
size_t length,
void *session);
83 lwm2m_object_t *securityObj;
84 lwm2m_object_t *serverObj;
85 lwm2m_object_t *deviceObj;
87 std::vector<lwm2m_object_t *> lwm2mObjects;
91 int buildSecurityAndServerObjects();
95 int buildDeviceObject();
Wakaama LwM2M client protocol implementation.
Wakaama client context and object registry runtime.
int configure(const char *endpoint)
Configure the Wakaama client endpoint and registered objects.
bool recoverFromBootstrapWedge()
Nudge a registration-failed client (parked in STATE_BOOTSTRAP_REQUIRED with no bootstrap server) back...
~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.
void destroy(const std::vector< ObjectBinding * > &objects)
Release built-in and descriptor-backed LwM2M objects.
security_instance_s * findSecurityInstance(uint16_t securityInstanceId) const
Find a Security object instance by instance ID.
bool ready() const
Return true when the Wakaama client has completed registration.
int step(time_t *timeout)
Run one Wakaama state-machine step.
lwm2m_context_t * context() const
Return the underlying Wakaama client context.
int openContext(void *userdata)
Open the Wakaama client context with transport callback userdata.
void handlePacket(uint8_t *buffer, size_t length, void *session)
Deliver one received packet into the Wakaama client context.
Out-of-tree user-extension hooks for Dawn.
Fixed pools backing bootstrap-mutable Security and Server objects.
Runtime representation of one LwM2M Security object instance.