gavinying / modpoll

A New Command-line Tool for Modbus and MQTT
https://gavinying.github.io/modpoll
MIT License
97 stars 20 forks source link

Multiple devices? #71

Open njh opened 3 weeks ago

njh commented 3 weeks ago

I have multiple Heatmiser Modbus Room Thermostats.

Is it possible to describe a device type and then specify multiple device ids for that device type? Or do you have to repeat the configuration for each device?

gavinying commented 3 weeks ago

It is possible for Modbus TCP devices but not Modbus RTU devices yet.

njh commented 2 weeks ago

How do you configure multiple Modbus TCP devices?

gavinying commented 1 week ago

Since TCP device's IP address info is not included in the config file, so the config can be reused for all same type devices. To connect to multiple devices, I usually use multiple docker containers in a docker-compose file. For example, we can run multiple modsim devices locally or on cloud and connect to them via a single publicly shared modsim config file.