ModbusThing(未完成)

config

{
  "SendInterval":0.5,
  "SlaveConfigs": {
    "slave1": {
      "name": "slave1",
      "com": "com1",
      "address": 8,
      "baudRate": 9600,
      "dataBits": 8,
      "parity": 0,
      "stopBits": 1,
      "cmds": [
        {
          "name": "power",
          "readTemplate": "**0400000001",
          "writeTemplate": "**06#",
          "type": 2
        }
      ]
    }
  }
}
internal enum CMDType
{
    Read,
    Write,
    ReadAndWrite,
}

疑惑

  1. 获取值(即时?)

Cfet2> Running on http://localhost:8001/
get http://localhost:8001/ModbusThing/ReadOrWrite/slave1/power
slave1
power
08-04-00-00-00-01-31-53
1
  1. limfx不在课题组


本文章使用limfx的vscode插件快速发布