0

I am trying to send an unlock command to the device using react-native-ble-plx but I am not able to send it, These error keep coming

manager.writeCharacteristicWithResponseForDevice(config.deviceid, config.serviceUUID, config.characteristicsUUID, data).then((result)=>{
          console.log('data', data);
          console.log('result', result);
        }).catch((error)=>{
          console.log(JSON.stringify(error));
        })

{"message":"Characteristic 6e400002-b5a3-f393-e0a9-e50e24dcca9e write failed for device CC:B7:15:27:DD:32 and service 6e400001-b5a3-f393-e0a9-e50e24dcca9e","errorCode":401,"attErrorCode":null,"iosErrorCode":null,"androidErrorCode":133,"reason":"GATT exception from MAC address CC:B7:15:27:DD:32, status 133 (GATT_ERROR), type BleGattOperation{description='CHARACTERISTIC_WRITE'}. (Look up status 0x85 here https://android.googlesource.com/platform/external/bluetooth/bluedroid/+/android-5.1.0_r1/stack/include/gatt_api.h)","name":"BleError"}

HElp me to resolve this issue

Suraj
  • 61
  • 4

0 Answers0