spacemanspiff2007/sml2mqtt

Support serial over TCP

Opened this issue · 2 comments

twam commented

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.

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

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