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_changedcallback.MbedCloudClient::on_status_changed(void(*fn)(void)); -
Failure
If the registration operation fails, you receive the result through the
errorcallback: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.