cordova-plugin-ble-central icon indicating copy to clipboard operation
cordova-plugin-ble-central copied to clipboard

change errorType in ios 'didWriteValueForCharacteristic:error:'

Open daskonsti opened this issue 9 years ago • 3 comments

In the android part, the "write" call returns "status" as int, if an error occurs. In iOS, there is a "localizedDescription" and so on js layer it's not possible to catch an equal code. So in the first step it would be logical, to send from both platforms the code, so the custom JS can handle the error in it's favour. In the second step, it could be better to return a JSON object with a structure like error: { code: int, localizedDescription: string [...] }

daskonsti avatar Feb 09 '16 09:02 daskonsti

This is a good idea, but it'll need to be implemented on iOS and Android before I merge.

don avatar Apr 26 '16 20:04 don

Hi,

From the hardware they are trying to send 800KB wav data to mobile. Is it possible to get the whole data using ble.startnotification method?? Because when i tried am getting only 10 kb data.

Thanks in advance.

deepak90mu avatar May 07 '16 11:05 deepak90mu

@deepak90mu please create a new issue with your question

don avatar May 10 '16 03:05 don

Closing this due to inactivity.

peitschie avatar Mar 16 '23 10:03 peitschie