zhaopeiym / IoTClient

This is an IoT device communication protocol implementation client, which will include common industrial communication protocols such as mainstream PLC communication reading, ModBus protocol, and Bacnet protocol. This component is open source and free for life, using the most relaxed MIT open source agreement, you can modify and commercial use at will (commercial use please evaluate and test). 这是一个物联网设备通讯协议实现客户端,将会包括主流PLC通信读取、ModBus协议、Bacnet协议等常用工业通讯协议。本组件终身开源免费,采用最宽松的MIT开源协议,您可以随意修改和商业使用(商业使用请做好评估和测试)。
MIT License
1.27k stars 408 forks source link

提议变更:增加字符串读取 #28

Closed xmlin123 closed 1 year ago

xmlin123 commented 1 year ago

增加字符串读取

zhaopeiym commented 1 year ago

public Result ReadString(string address) 可以添加一个读取长度的参数

xmlin123 commented 1 year ago

 如图, 不需要指定字符串长度,只需要指定变量地址,返回的结果中, 第一字节206不知道什么意思 ,第234字节是长度,后面的是字符串内容了。

另外:字符串写入不知道怎么做改, 大佬能完善下么?

------------------ 原始邮件 ------------------ 发件人: "zhaopeiym/IoTClient" @.>; 发送时间: 2022年10月27日(星期四) 上午8:40 @.>; @.**@.>; 主题: Re: [zhaopeiym/IoTClient] 提议变更:增加字符串读取 (PR #28)

public Result ReadString(string address) 可以添加一个读取长度的参数

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.Message ID: @.***>