NRC_ModifyControllerIP(std::string name,std::string ip,std::string gateway,std::string dns)
Modify controller IP
Type
int =>Modify controller IP
| Return value | Description |
|---|---|
| 0 | The function is called successfully |
| -101 | Invalid input parameter |
| -102 | The target object does not exist. This typically occurs when the system initialization is incomplete, and calling other functions may return this value |
| -103 | The target object is currently in an inoperable state |
Parameter Option
| Parameter | Type | Description |
|---|---|---|
| name | string | Network card name |
| ip | string | Target IP, must conform to the IP naming rules |
| gateway | string | Gateway |
| dns | string | DNS |
Sample code
NRC_ModifyControllerIP("p2p1","192.168.1.13","192.168.1.1","192.168.1.1");