config 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. # debug 调试模式
  2. # serverIp 服务ip
  3. # deviceId 华为云配置deviceId
  4. # secret 华为云配置secret
  5. # connectConfigList 设备配置 {[
  6. # equipmentNo 设备编号
  7. # ipAddress 设备ip地址
  8. # port 设备ip端口号
  9. # type 设备类型
  10. # -> 1 注塑机
  11. # -> 2 滚印机
  12. # -> 3 组装机
  13. # -> 4 螺纹头
  14. # -> 5 注射针
  15. # other { 其他配置:每种协议特有配置统一放这
  16. # 如:
  17. # type为 2、3、4、5 时,走modBusTcp协议:可配置以下信息,不配置则为默认值
  18. # slavedId 从机地址 默认 1
  19. # coilsOffSet 0x开始读取地址 默认:0
  20. # coilsQuantity 0x读取位数 默认:100
  21. # discreteInputsOffSet 1x开始读取地址 默认:0
  22. # discreteInputsQuantity 1x读取位数 默认:100
  23. # inputRegistersOffSet 3x开始读取地址 默认:0
  24. # inputRegistersQuantity 3x读取位数 默认:100
  25. # holdingRegistersOffSet 4x开始读取地址 默认:0
  26. # holdingRegistersQuantity 4x读取位数 默认:100
  27. # }
  28. # ]}
  29. {
  30. "debug": true,
  31. "serverIp": "a1625d5cc8.iot-mqtts.cn-north-4.myhuaweicloud.com",
  32. "deviceId": "62d4ff516b9813541d51f893_test_node_01",
  33. "secret": "fjhx2012",
  34. "connectConfigList": [
  35. # {
  36. # "equipmentNo": "test1",
  37. # "ipAddress": "192.168.0.140",
  38. # "port": 502,
  39. # "type": 2
  40. # },
  41. {
  42. "equipmentNo": "test1",
  43. "ipAddress": "192.168.1.174",
  44. "port": 502,
  45. "type": 2,
  46. "other": {
  47. "slavedId": 1,
  48. "coilsOffSet": 0,
  49. "coilsQuantity": 17,
  50. "discreteInputsOffSet": 0,
  51. "discreteInputsQuantity": 21,
  52. "inputRegistersOffSet": 0,
  53. "inputRegistersQuantity": 0,
  54. "holdingRegistersOffSet": 0,
  55. "holdingRegistersQuantity": 4
  56. }
  57. }
  58. ]
  59. }