1 Star 1 Fork 1

ThingsGateway/Docs

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
RPC.mdx 943 Bytes
一键复制 编辑 原始数据 按行查看 历史
Diego 提交于 2个月前 . 更新文档
---
id: 502
title: RPC反写
---
import useBaseUrl from "@docusaurus/useBaseUrl";
import Tag from "@site/src/components/Tag.js";
import Highlight from '@site/src/components/Highlight.js';
## 一、WEBAPI
开发环境下,打开swagger(http://localhost:5000/api/index.html)
<img src={require("@site/static/img/docs/WEBAPI.png").default} />
请求参数为``Dictionary<string,Dictionary<string, string>>``,比如
```
{
"modbusDevice650922399363167":
{
"modbus41":"1",
"modbus42":"2"
}
}
```
键为设备名称,值为变量字典(包含变量名称和写入值)
## 二、MQTTRPC
查看MqttClient插件页面[脚本传入内容](./MqttClient.mdx#四rpc)
## 三、ModbusSlave
modbus服务端写入,查看对应插件配置
## 四、OPCUAServer
opcua服务端写入,查看对应插件配置
## 五、规则引擎
规则引擎灵活性非常大, 可用自定义脚本获取数据后写入
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/ThingsGateway/Docs.git
git@gitee.com:ThingsGateway/Docs.git
ThingsGateway
Docs
Docs
master

搜索帮助