spacemanspiff2007 / sml2mqtt

Sml to MQTT Bridge
GNU General Public License v3.0
25 stars 8 forks source link

Support serial over TCP #42

Open twam opened 2 months ago

twam commented 2 months ago

Would it be possible to support connection a meter with a serial over TCP link, e.g. https://www.aliexpress.com/item/1005005996885050.html? Those devices just open a TCP port which then provides access to the serial port.

This way I could easily access devices which are not in 'USB range' of my home server.

spacemanspiff2007 commented 2 months ago

I'm afraid I can't comment on that. The underlying library supports the following urls. If the device supports one of those it should work.

Edit: It should always be possible to mount the remote device with the corresponding program (e.g. socat) and then access as if would be a local device..

twam commented 2 months ago

Thanks for the quick reply. The URLs include socket://<host>:<port> which looks good. I'll test it and report here.