Android BLE

Unpacking BLE frames in a readable way.

Ever wondered why does unpacking Bluetooth data you receive is so much work compared to automatic unpacking done by Retrofit via GSon/etc? This is caused because BLE data is usually very tightly packed and data format varies greatly between devices. Some devices can send Int values as one/two/three/four bytes, sometimes they are big-endian, sometimes little-endian. […]