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.
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.