iioter / iotgateway

A cross-platform IoT gateway based on .net6. Through visual configuration, you can easily connect to any of your devices and systems (such as PLC, barcode scanner, CNC, database, serial device, host computer, OPC Server, OPC UA Server, Mqtt Server, etc.), so as to interact with Thingsboard, IoTSharp or Your own IoT platform for two-way data communication. Provide a simple driver development interface; of course, edge computing can also be performed.
http://iotgateway.net/docs/enterprise/intro/
MIT License
826 stars 246 forks source link

Any documentation about driver development? 是否有驱动开发文档? #7

Closed circler3 closed 2 years ago

circler3 commented 2 years ago

Is there any plan about driver development or samples about driver development?

是否有驱动的开发文档提供?或者有样例驱动?

iioter commented 2 years ago

驱动只要实现: IDriver接口就可以。 方法参照 [Method("Read方法样例", description: "Read方法样例描述")] public DriverReturnValueModel Read(DriverAddressIoArgModel ioarg) { DriverReturnValueModel ret = new DriverReturnValueModel { Message = "", StatusType = VaribaleStatusTypeEnum.Good, Value = $"{DeviceId} {DateTime.Now.ToString("O")} Read {ioarg.Address}" }; return ret; }

circler3 commented 2 years ago

I found some details of modbus settings such as parity setting in webpage. However I cannot find any word about Even parity in the code. Can you give some instructions?

我在web界面中的通信设置内找到了校验方法设置的选项(Even等),但是我找了驱动的代码,并没有找到类似的东西,请问这个是如何实现的呢?

iioter commented 2 years ago
iioter commented 2 years ago
  1. 驱动简介:驱动简介
  2. 驱动开发实操:驱动开发实操