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

Methods of the BasicTest Class

The methods of the BasicTest class are used to test whether basic functions, such as certificate, login, and device registration, are normal. The method is as follows:

Method

Description

public static void beginBasicTest(String platformIp, String platformPort, String appId, String secret, SSLConfig sslConfig)

After setting the platform IP address, port number, application ID, secret, and commercial certificate (optional), you can use this method to test whether basic functions, such as certificate, login, and device registration, are normal. If any exception occurs, the cause and suggestion are displayed on the console.