Help writing this line for fuel level

I need help writing this line for fuel level

value targetId=“170” offset=“??” length=“??” conversion=“???”> <!-- Fuel Level

offset=1 and length=1 and the conversion is whatever 0x35 represents, is it % or is it litres

2 Likes

Thanks mmain

The tank is that code reads
0x1f5: 00-(00). =empty
0x1f5: 00-(ff).= full

So conversion=V/2.55 this will give response 0 - 100 %, alternatively V/(255/fuel tank capacity) will give you litres or gallons

2 Likes

targetId 170 expects percentage, so use V/2.55

1 Like