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

Is there a way to get raw data from request #19

Open
BinhSw opened this issue Jun 21, 2018 · 4 comments
Open

Is there a way to get raw data from request #19

BinhSw opened this issue Jun 21, 2018 · 4 comments

Comments

@BinhSw
Copy link

BinhSw commented Jun 21, 2018

Hi,
I am trying to get the list of available pids by requesting pid 0x00. However, there is no property of Mode01Descriptor or Response that provides the raw data. Is it possible to access raw data from a request using this library? If not, how can I access the list of available pids?

Thanks

let command = Command.Mode01.pid(number: 00)
obd.request(command: command) { [weak self] (descriptor) in
OperationQueue.main.addOperation {
if let response = descriptor?.response {
// Parse response
}
}
}

@Skriponj
Copy link

Skriponj commented Jul 17, 2018

Hi, i have the same trouble. Could you help if you have found any solution ?

@Cleversou1983
Copy link

Cleversou1983 commented Jul 17, 2018 via email

@Skriponj
Copy link

Hi again, if this trouble is still actual for you, then maybe it can help. I found some solution - you can use buildSupportedSensorList(data : Data, pidGroup : Int) -> Bool method. But for that it have to be marked as public or copied to another place from InitScanerOperation.swift file

@Cleversou1983
Copy link

Cleversou1983 commented Jul 18, 2018 via email

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

3 participants