Reedyuk / blue-falcon

A Bluetooth kotlin multiplatform "Cross-Platform" library for iOS and Android
https://bluefalcon.dev
Apache License 2.0
321 stars 43 forks source link

Writing to the characteristic without any encoding #80

Closed beniamin-cazacu closed 2 years ago

beniamin-cazacu commented 2 years ago

Fixes #79

In the current implementation, the byte array goes through several processes before being sent to the server (decode, encode). This breaks the converted value into a byte array, in the order of Little Endian. I added the option to send the array without the need to decode and encode again the array.