Mistake on this page? Email us

Registering the device

Call setup() to register the Pelion Device Management Client with Pelion Device Management:

    MbedCloudClient::setup();

If the device supports bootstrapping and does not yet have LwM2M certificates, the client:

  1. Bootstraps.
  2. Automatically registers with the provided LwM2M service.

Otherwise, the client performs registration with the LwM2M service directly.

The result of that request can be:

  • Success

    If the Device Management service successfully registers Device Management Client, the application receives the Registered result through the on_status_callback callback.

  • Failure

    If the registration operation fails, the application receives the result through the error callback.