Binding Configuration
API Function
This API is used to configure the IP address and port number of the IoT platform before binding a device.
API Description
1 |
public static boolean setConfig(int key, String value);
|
Class
BindConfig
Parameter Description
Parameter |
Mandatory or Optional |
Type |
Description |
---|---|---|---|
key |
Mandatory |
int |
Specifies the configuration items of device binding.
|
value |
Mandatory |
String |
Specifies the value of the configuration item.
|
Return Value
Return Value |
Description |
---|---|
true |
Success |
false |
Failure |
Output
N/A
Example
1 2 |
BindConfig.setConfig(BindConfig.BIND_CONFIG_ADDR, "127.0.0.1");
BindConfig.setConfig(BindConfig.BIND_CONFIG_PORT, "8943");
|
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot