Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Transmitting DTCs using Swift #37

Open
Berkelos opened this issue May 14, 2021 · 1 comment
Open

Transmitting DTCs using Swift #37

Berkelos opened this issue May 14, 2021 · 1 comment

Comments

@Berkelos
Copy link

Hi,

I'm student from Czech Republic working right now on my thesis where I'm trying to use this library. Whole application is written in Swift with SwiftUI. Everything works fine but when I'm attempting to get DTCs whole communication fails. Here is the part of application that is causing the problems:

let dtcPids = [LTOBD2PID_STORED_DTC_03(),LTOBD2PID_PENDING_DTC_07(),LTOBD2PID_PERMANENT_DTC_0A()]
self._obd2Adapter?.transmitMultipleCommands(dtcPids, completionHandler: { _ in
self.dtcS = dtcPids[0].troubleCodes
self.dtcP = dtcPids[1].troubleCodes
self.dtcPer = dtcPids[2].troubleCodes
})

I was also watching Demo application but didn't find solution.

@jorgeflorescarlos
Copy link

Try this
`odb2Adapter?.transmitMultipleCommands([rpm], responseHandler: { commands in

            })`

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

No branches or pull requests

2 participants