sfloatToFloat

fun sfloatToFloat(raw: Int): Float?

Converts a 16-bit IEEE 11073-20601 SFLOAT to a Float.

Returns null for special values (NaN, NRes, +/-Infinity, Reserved).

Parameters

raw

unsigned 16-bit value read from BLE characteristic