You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

116 lines
1.7 KiB

12 months ago
12 months ago
12 months ago
12 months ago
12 months ago
12 months ago
12 months ago
12 months ago
12 months ago
  1. # 测试指令
  2. ## 消毒服务
  3. ### 启动消毒
  4. ```json
  5. {
  6. "messageType": "Command",
  7. "fnName": "start",
  8. "className": "DisinfectionCtrlServiceExt",
  9. "messageId":"1234",
  10. "timeStamp": 1234 ,
  11. "params":{
  12. "loglevel":"12"
  13. }
  14. }
  15. ```
  16. ## 测试模式
  17. ### 启动H2O2假数据自动生成线程
  18. ```json
  19. {
  20. "messageType": "Command",
  21. "fnName": "fn_startGenFakeH2O2Data",
  22. "className": "AppCore",
  23. "messageId": "1234",
  24. "timeStamp": 1234,
  25. "params": {
  26. "data": [
  27. {
  28. "h2o2": 0,
  29. "humid": 0,
  30. "temp": 0,
  31. "saturation": 0,
  32. "random": true,
  33. "enable": true
  34. },
  35. {
  36. "h2o2": 0,
  37. "humid": 0,
  38. "temp": 0,
  39. "saturation": 0,
  40. "random": true,
  41. "enable": true
  42. },
  43. {
  44. "h2o2": 0,
  45. "humid": 0,
  46. "temp": 0,
  47. "saturation": 0,
  48. "random": true,
  49. "enable": true
  50. }
  51. ]
  52. }
  53. }
  54. ```
  55. ### 停止H2O2假数据自动生成线程
  56. ```json
  57. {
  58. "messageType": "Command",
  59. "fnName": "fn_stopGenFakeH2O2Data",
  60. "className": "AppCore",
  61. "messageId":"1234",
  62. "timeStamp": 1234
  63. }
  64. ```
  65. ## 测试页面
  66. ### 读取配置
  67. ```json
  68. {
  69. "messageType": "Command",
  70. "fnName": "getTestPageCfgInfo",
  71. "className": "TestPageMgrService",
  72. "messageId":"1234",
  73. "timeStamp": 1234
  74. }
  75. ```
  76. ### 启动上报
  77. ```json
  78. {
  79. "messageType": "Command",
  80. "fnName": "startReportState",
  81. "className": "TestPageMgrService",
  82. "messageId":"1234",
  83. "timeStamp": 1234
  84. }
  85. ```
  86. ### 停止上报
  87. ```json
  88. {
  89. "messageType": "Command",
  90. "fnName": "stopReportState",
  91. "className": "TestPageMgrService",
  92. "messageId":"1234",
  93. "timeStamp": 1234
  94. }
  95. ```