20 #define WPP_CLIENT_MAX_SLEEP_TIME_S 60
150 #if defined(LWM2M_SUPPORT_SENML_JSON) && RES_1_23
169 bool lwm2mContextOpen();
174 void lwm2mContextClose();
183 bool lwm2mConfigure(
const std::string &endpointName,
const std::string &msisdn,
const std::string &altPath);
192 lwm2m_context_t *_lwm2m_context;
Represents a client interface for Wpp library.
static WppClient * takeOwnership()
Takes ownership of the WppClient.
lwm2m_context_t & getContext()
Gets the LwM2M context associated with the WppClient.
void giveOwnership()
Gives up ownership of the WppClient.
static void remove()
Removes the WppClient.
time_t loop()
Processes the state of the Wakaama core. This function performs the necessary work by the Wakaama cor...
WppConnection & connection()
Gets the WppConnection associated with the WppClient.
lwm2m_client_state_t getState()
Gets the state of the Wakaama client.
static bool isCreated()
Checks if the WppClient is created.
static WppClient * takeOwnershipBlocking()
Takes ownership of the WppClient, blocking until it becomes available.
static bool create(const ClientInfo &info, WppConnection &connection, WppErrHandler errHandler=NULL)
Creates a WppClient with the specified client information, connection, and maximum sleep time.
std::function< void(WppClient &client, int errCode)> WppErrHandler
void deregister()
Deregisters the client from the servers.
WppRegistry & registry()
Gets the WppRegistry associated with the WppClient.
The WppGuard class provides a linker callback class that must be implemented by the user.
The WppRegistry class represents a registry for managing LWM2M objects.
The WppConnection class represents a connection interface for the Wpp library.
Represents the information required to create a WppClient.