don / cordova-plugin-ble-central

Bluetooth Low Energy (BLE) Central plugin for Apache Cordova (aka PhoneGap)
Apache License 2.0
941 stars 601 forks source link

ionic cordova getting 133 error for ble.write() in Android device #994

Open megha2021 opened 6 months ago

megha2021 commented 6 months ago

I am using ionic Cordova, the Ble plugin is working fine for all other methods but when I use the write method it throws 133 error and it is happening only in Android, the same code works in IOS. Please let me know the solution.

peitschie commented 6 months ago

Hiya @megha2021

An error like 133 is a GATT error returned by Android, and unlikely to be something caused by the plugin.

It's worth double-checking that the peripheral supports the type of write you're using (write vs writeWithoutResponse).

Some things I'd suggest to trying:

  1. Check if you get the same problem across multiple types of Android devices
  2. See if you get the same result if you try and write using another application such as nrf Connect