Before you call the BatchSetEdgeInstanceDeviceConfig operation, you must specify the DeviceConfigs.N.Content parameter. You can refer to the device configurations that are described in this topic and import the device configuration file in the JSON format.
Configurations of the Modbus device
The following example shows the format of the DeviceConfigs.N.Content parameter for the Modbus device:
{
"slaveId": 1,
"pollingTime": 1000
}
Parameter | Required | Type | Description |
---|---|---|---|
slaveId | Yes | Integer | The station number of the Modbus device. The station number must be unique for each channel. Valid values: 1 to 247. |
pollingTime | Yes | Integer | The data collection interval. Unit: milliseconds (ms). |
Configurations of the OPC UA device
The following example shows the format of the DeviceConfigs.N.Content parameter for the OPC Unified Architecture (UA) device:
{
"displayNamePath": "xxx/yyyy"
}
Parameter | Required | Type | Description |
---|---|---|---|
displayNamePath | Yes | String | The node path of the device on the OPC UA Server. The path starts with Objects. |
Configurations of the WebSocket device
The following example shows the format of the DeviceConfigs.N.Content parameter for the WebSocket device:
{
"clientIp": "192.168.1.1"
}
Parameter | Required | Type | Description |
---|---|---|---|
clientIp | Yes | String | The IP address of the device or the gateway that is connected to the device. |