Skip to content
This repository has been archived by the owner on Nov 22, 2022. It is now read-only.

Modbus_ #2

Open
tafeng0908 opened this issue Oct 27, 2020 · 0 comments
Open

Modbus_ #2

tafeng0908 opened this issue Oct 27, 2020 · 0 comments

Comments

@tafeng0908
Copy link

I call swiftLibModbus.connect(), and connect successful( print connected message ).
but I call swiftLibModbus.readBitsFrom(), return value is wrong
//--------------------------------------------------------------------------------------
let swiftLibModbus = SwiftLibModbus(ipAddress: "192.168.2.10", port: 502, device: 1)
swiftLibModbus.connect(
{ () -> Void in
//connected and ready to do modbus calls
print("connected")
},
failure: { (error: NSError) -> Void in
//Handle error
print("error")
})

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant