目录

PingCallback

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.

Method Summary

Modifier and Type

Method and Description

void

onResult(int result) Indicates the callback function of the message sending result.

Method Detail

[h2]onResult

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.