mypiandrew / modbuslogger

Demo Program to log data from a Modbus TCP/RTU device to a SQL lite database
MIT License
4 stars 5 forks source link

custom port modbus tcp #1

Open Vitbas opened 2 years ago

Vitbas commented 2 years ago

Good day! Is it possible to specify a custom port for modbus tсp?

mypiandrew commented 2 years ago

Hi

I'm sure you could

If you look at modbus.c the TCP is hard coded to 502

The code is just a demonstration of a basic to give people a starting point to see how the different elements work