chrvadala / node-ble

Bluetooth Low Energy (BLE) library written with pure Node.js (no bindings) - baked by Bluez via DBus
https://www.npmjs.com/package/node-ble
MIT License
315 stars 46 forks source link

WriteValue - add type param #5

Closed buildog closed 3 years ago

buildog commented 4 years ago

According to Bluez API (https://github.com/hadess/bluez/blob/master/doc/gatt-api.txt) you can specify the write type (eg: Write without response)

This PR aim to add this type parameter to WriteValue

Here is the allowed types :

"command": Write without response
"request": Write with response
"reliable": Reliable Write
chrvadala commented 4 years ago

Thank you for your PR. Can you provide a test suite for that?