Updated on 2022-02-24 GMT+08:00

Methods of the ClientInfo Class

The methods of the ClientInfo class are used to set basic information for interworking with the IoT platform. The following describes the main methods (excluding the get method):

Method

Description

public void setPlatformIp(String platformIp)

Sets the IP address of the IoT platform.

public void setPlatformPort(String platformPort)

Sets the port number of the IoT platform, for example, 8743.

public void setAppId(String appId)

Sets the application ID. The application ID is an identity allocated by the IoT platform to a third-party application, and is used to uniquely identify an application.

public void setSecret(String secret)

Sets the secret of the application. The secret indicates the password for the application ID on the IoT platform.