suyashmathema / mongoose-os-modbus

Other
6 stars 3 forks source link

Modbus/TCP support #2

Open pimvanpelt opened 3 years ago

pimvanpelt commented 3 years ago

I'd like to use mbpoll(1) to query a Mongoose OS device that is exposing a modbus. I currently use RPC which works great, although it's a bit specific to the mos environment.

If you're OK, I'd like to add modbus/tcp support under an mos.yml enabler flag, so that we can serve directly on TCP/IP. The header is very straight forward, and I can prepare a PR for you (either here or if you decide to move, into the mongoose-os-libs/modbus.git repo I created for you in #1). Let me know, and I'll prepare the code.

Thanks for the modbus library, it's been very useful for me in a project.

jonrot1906 commented 2 years ago

@pimvanpelt Is there any progress going on regarding the Modbus TCP implementation? I would be very interested too! @suyashmathema Great work so far, thanks a lot!