bsquare-corp / modbus-sphere-library

A Modbus Library and example code suitable for use on Microsoft Sphere devices. Supports Modbus TCP, Modbus RTU and Modbus RTU over TCP.
MIT License
9 stars 7 forks source link

libmodbus vs modbus-sphere-library for Modbus TCP #10

Open kiranpradeep opened 4 years ago

kiranpradeep commented 4 years ago

This is not an issue ticket. But I like to understand when I should use this library. I understand Modbus RTU (RS485) on Sphere devices needs device specific code and hence this library. But if the user only needs Modbus TCP on Sphere devices, can they just not use libmodbus? If yes, then does this library really need to include/maintain Modbus TCP source code ?

matthewi-bsquare commented 4 years ago

You could use libmodbus as a base, certainly. Just make sure that the licensing conditions (LGPL v2.1+) work for your particular development. This library can be used under the MIT licensing, and was developed separately.

kiranpradeep commented 4 years ago

Thanks for the reply. But, the reply is not fully clear. The term "libmodbus as a base" is ambigous - why not directly use libmodbus for Modbus TCP on sphere devices ?