public interface PingCallback
It is the callback API for sending ping messages.
If the ping operation times out after 30 seconds, the HiWearException 203 error code is returned.
Modifier and Type | Method and Description |
|---|---|
void | onResult(int result) Indicates the callback function of the message sending result. |
void onResult(int result)
It indicates the callback function of the message sending result.
Parameters:
Parameter Name | Parameter Description |
|---|---|
result | Result code, which is the same as HiWearErrorCode. |