urish / web-bluetooth-polyfill

Windows 10 Web Bluetooth Polyfill
76 stars 15 forks source link

send 0x0101 to record access control point characteristic "Impossible to write this attribute" #49

Closed merylb closed 6 years ago

merylb commented 6 years ago

hello, i try to send 0x0101 to record access control point characteristic but I get this error "Impossible to write this attribute" I need to know is that's an error in the the value 0x0101 or somthing else.

urish commented 6 years ago

Sounds like the characteristic is read-only? Can you try to write this value from the nRF Connect app (to the same characteristic) and see what you get?

merylb commented 6 years ago

I'm sûre that my characteristic is writable here is a screenshot of its details is one of pulse oximetry service characteristics. recordaccess

i try to send 0x0101 directly from BleServer but the same exception was handled recordaccess

and also directly from my front-end code vm.measurementCaracteristic.writeValue(Uint8Array.of(1,1));

but the same error occure

merylb commented 6 years ago

please any help i'am blocked in this stage

urish commented 6 years ago
  1. Can you test the same Web Bluetooth code on an Android device or Mac computer to compare?
  2. What is the value of bool writeWithoutResponse in BLEServer?
urish commented 6 years ago

The polyfill is now deprecated - please use Chrome Canary with native Web Bluetooth instead.