dsongra / Blog: Recent posts

Data conversion

Hello,

My name is Devendra, I am working on IOT kit using Hilscher NetIOT Connect Gateway, I have P&F Ultrasonic sensor (range 4000mm), i am getting process data 14 bit in two bytes (attachment Received data). I want to convert it into 16bit uint starting 2 bit offset of first byte, bit read start from bit 2 to bit 14. So value should be in mm.

Thanks in advance.

Br,
Devendra

Posted by dsongra 2020-11-11