# # Copyright 2016-present the original author or authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. # ### 读取指定设备位号值 #driver/command/read POST http://{{dc3-driver-opc-da}}/driver/command/read Accept: */* Content-Type: application/json Cache-Control: no-cache [ { "deviceId": -4, "pointId": -17 }, { "deviceId": -4, "pointId": -18 }, { "deviceId": -4, "pointId": -19 }, { "deviceId": -4, "pointId": -20 }, { "deviceId": -4, "pointId": -21 }, { "deviceId": -4, "pointId": -22 } ] ### 写入指定设备位号值 #driver/command/write POST http://{{dc3-driver-opc-da}}/driver/command/write Accept: */* Content-Type: application/json Cache-Control: no-cache [ { "deviceId": -4, "pointId": -17, "value": "3" }, { "deviceId": -4, "pointId": -18, "value": "45" }, { "deviceId": -4, "pointId": -19, "value": "87" }, { "deviceId": -4, "pointId": -20, "value": "56.78" }, { "deviceId": -4, "pointId": -21, "value": "false" }, { "deviceId": -4, "pointId": -22, "value": "DC3" } ] ###