thingsboard / thingsboard-gateway

Open-source IoT Gateway - integrates devices connected to legacy and third-party systems with ThingsBoard IoT Platform using Modbus, CAN bus, BACnet, BLE, OPC-UA, MQTT, ODBC and REST protocols
https://thingsboard.io/docs/iot-gateway/what-is-iot-gateway/
Apache License 2.0
1.74k stars 844 forks source link

[HELP] using modbus via ethernet,eth0, and internet with wireless lan,wlan0 ? #395

Closed ahweeuhl closed 4 years ago

ahweeuhl commented 4 years ago

Describe the issue how would I configure the modbus.conf file to point to eth0? for example the device is hardwired to the LAN port of the raspberry Pi. but the internet connection is on wireless, wlan0.

how do i configure such that it points to the ethernet connection? The application works if place both devices in a router, but that won't be an elegant solution.

Connector name (If you need help with some connector/converter): Modbus Connector

Versions (please complete the following information):

imbeacon commented 4 years ago

Hi @ahweeuhl

Usually this is resolving by network manager, but you are able to add route manually to send traffic to some endpoint using specified gateway. You can read more here.