EddyVerbruggen / nativescript-bluetooth-demo

30 stars 21 forks source link

Write fails #18

Closed aaayushsingh closed 7 years ago

aaayushsingh commented 7 years ago

Tested with two different BLE devices, writing custom value doesn't really work. Tried removing 0x check from beginning of the code by removing IndexOf(x==-1) from code but still doesn't work.

Another android app made in Java using android studio works with both BLE devices.

aaayushsingh commented 7 years ago

I had to write 0xaa00013839 which was not working. Instead, writing 0xaa,0x00,0x01,0x38,0x39 worked. I'll finally fix this in my copy of code myself later.