clausbroch / node-red-contrib-noble-bluetooth

A Node-RED module based on noble for interaction with Bluetooth Low Energy (BLE) devices.
MIT License
8 stars 15 forks source link

Support option to `Write with response` or `Write without response` #5

Open hbull1 opened 4 years ago

hbull1 commented 4 years ago

My particular application communicates with a peripheral set to require Write with response. I was only able to correctly write to a characteristic by changing the following line to false to allow Write with response. Would be useful to send option from node (ex. msg.WriteWithResponse=true, ....=false, etc).

 // true if for write without response
            characteristic.write(data, false, function(error) {