Skip to content

batteryVoltage() returns zero #203

@themelisx

Description

@themelisx

I am testing your library, since now works fine at all PIDs (1_20) that I need, except the battery voltage.
The function returns 0 but at the debug log I can see 13.1 Volts
I am using like this:
int newValue = int(obd->batteryVoltage() * 10);
so I am wating to get 131

Query ODB value
Clearing input serial buffer
Sending the following command/query: AT RV
Received char: A
Received char: T
Received char: _
Received char: R
Received char: V
Received char: \r
Received char: 1
Received char: 3
Received char: .
Received char: 1
Received char: V
Received char: \r
Received char: \r
Received char: >
Delimiter found.
All chars received: ATRV13.1V

Metadata

Metadata

Assignees

Labels

questionFurther information is requested

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions