evothings / cordova-ble

Bluetooth Low Energy plugin for Cordova
http://www.evothings.com/
Apache License 2.0
242 stars 103 forks source link

Not able to receive data as an ArrayBuffer in peripheral mode.... #132

Open rajatsawant opened 7 years ago

rajatsawant commented 7 years ago

Ionic code.txt

The data I receive is in string format and a garbage value, changing every time i send the same message from a central ble.

ghost commented 7 years ago

@rajatsawant Hi, peripheral mode is still largely untested. What happens if you send a very simple value, like a byte with value 1 for example? Does that arrive as expected? Is it an array of bytes that does not work?

rajatsawant commented 7 years ago

@mikaelkindborg Thanks for replying. In the onWriteRequest callback, i am supposed to get an ArrayBuffer as the data from the master. But I get a garbage string. And it changes every time even though the data from the master is the same. Regards.

ghost commented 7 years ago

@rajatsawant This sounds like a bug in the plugin. Not sure when we will have time to address this however.