Closed 1umpus closed 11 years ago
Forgot to mention that I'm using an ELM327 OBD-II Wifi Key.
Never mind, I fixed it. Here's how:
- (void)scanToolDidInitialize:(FLScanTool*)scanTool {
FLINFO(@"SCANTOOL INITIALIZATION COMPLETE")
FLDEBUG(@"scanTool.scanToolState: %08X", scanTool.scanToolState)
FLDEBUG(@"scanTool.supportedSensors count: %d", [scanTool.supportedSensors count])
statusLabel.text = @"Scanning...";
[_scanTool setSensorScanTargets:[NSArray arrayWithObjects:
[NSNumber numberWithInt:0x0C], // Engine RPM
[NSNumber numberWithInt:0x0D], // Vehicle Speed
[NSNumber numberWithInt:0x2F], // Vehicle Fuel Level
[NSNumber numberWithInt:0x11], // Vehicle Throttle Position
[NSNumber numberWithInt:0x0A], // Vehicle Fuel Pressure
[NSNumber numberWithInt:0x010],// Mass Air Flow Rate (MAF)
nil]];
scanToolNameLabel.text = _scanTool.scanToolName;
}
Just add all of the PID's you'd like by appending to the setSensorScanTargets:
array using [NSNumber numberWithInt:]
.
Hi,
I'm trying to get other PID's in my app, however all that I'm getting 0x0C and 0x0D. I want 0x2F, 0x0A, and 0x11. Here is the code that I'm trying to use:
What am I doing wrong? I tried printing the value for the PID to a label and all I'm getting is 12 and 13 when I push the gas pedal. I'm driving a Lexus RX400h with a very temperamental brain that likes to control the RPM speed and fuel consumption itself. Is my car the problem?