modbus
modbus copied to clipboard
how to set up URL on windows OS?
thanks!
I can't test this on Windows, but I think this Stack Overflow post can help: https://stackoverflow.com/questions/27909666/createfile-serial-communication-issue.
client, err := modbus.NewClient(&modbus.ClientConfiguration{
URL: "rtu://\\\\.\\COM6",
...
})
today,I try to fill "rtu://COM7" to URL field, it works. I can''t explain this situation,but anyway, this problem is solved.thank you.