Closed rzetterberg closed 2 months ago
Would greatly appreciate if a Windows-user could test the library on Windows and tell me what needs to be changed in the documentation when using Windows.
To make it work on my macbook, I had to install this: https://pbxbook.com/other/mac-tty.html (the prolific one). Then the the device to use was: /dev/tty.usbserial
There are no peculiarities for TCP connected ELM327 devices for the various platforms. In principle most of the operating systems supported by Go are supported by elmobd as well.
Serial connected devices should be supported for Linux, Windows and POSIX compliant operating systems according to: https://github.com/tarm/serial
Some examples for the address
string using in the elmobd.NewDevice()
:
tcp://example.com
tcp://192.168.1.100:1234
(TCP IP:Port pair)tcp4://example.com:1234
(IPv4+TCP connection)tcp6://example.com:1234
(IPv6+TCP connection)unix:/path/to/obd2.sock
(Unix Domain Socket)serial:///dev/ttyUSB0
(Serial port on Linux or POSIX)serial://COM5
(Serial port on Windows)
Right now the examples assumes you are using Linux as the host OS. Since not everyone uses Linux there should documentation on how you use other platforms.