Mistake on this page? Email us

Success and failure callbacks

  • Success

    If the register operation is successful and Device Management Client can register all the Resources to Device Management Connect, the application receives the result through the on_status_changed callback.

        MbedCloudClient::on_status_changed(void(*fn)(void));
    
  • Failure

    If the registration operation fails, you receive the result through the error callback:

        MbedCloudClient::on_error(void(*fn)(int));
    

The error parameter passed with the callback contains more information on the error; use it to fix the problem.

You can see the mapped status codes in the MbedCloudClient::Status enum. You can see the mapped error codes in the MbedCloudClient::Error enum.