rs485 float to decimal conversion


This Content is from Stack Overflow. Question asked by Ehsanul Karim

I have a rs485 sensor which responses with these values 0E 45 B2 49

As per the manual
The actual value is float 45 0E 49 B2 Converted to decimal is 2276.5mm

Can anyone please help me to convert 45 0E 49 B2 to 2276.5 ? I would like to get this done in Arduino


This question is not yet answered, be the first one who answer using the comment. Later the confirmed answer will be published as the solution.

This Question and Answer are collected from stackoverflow and tested by JTuto community, is licensed under the terms of CC BY-SA 2.5. - CC BY-SA 3.0. - CC BY-SA 4.0.

people found this article helpful. What about you?