Desired changes to use this library in noble (@abandonware/noble)#71
Desired changes to use this library in noble (@abandonware/noble)#71nmasse-itix wants to merge 2 commits intochrvadala:mainfrom
Conversation
|
@chrvadala may I ask you to have a look at it ? |
|
Hello @nmasse-itix thanks for your feedback. I think that node-ble can easily replace noble ( I developed it for this reason).
Quite soon I'll' merge this PR that adds these features
These events are available. Did you see the the doc https://github.com/chrvadala/node-ble/blob/main/docs/api.md#device--eventemitter
Can you provide more information? An example/test case can be useful.
I thought that this was solved. Is there some corner case? |
|
Hello ! Sorry for the late reply. I managed to find some time today to work on it.
In addition to the two properties that were added, I also need the following property in Device.js : /**
* List of 128-bit UUIDs that represents the available remote services.
* @returns {string[]}
*/
async getServiceUUIDs () {
return this.helper.prop('UUIDs')
}➡️ Would it be an acceptable change for you ?
I took a step back and found a solution that does not involve any change in this library to get the device id. 👍
➡️ I created #72 with a code to reproduce the issue.
➡️ I created #73 with a code to reproduce the issue. |
Hello,
I'm using the library node-poweredup to drive Lego gears. This library uses noble to have a cross-platform abstraction of BLE services. And noble, under Linux, is still using HCI mode that is not working on recent distributions that I tested.
I managed to craft a binding for noble, using node-ble as a way to interact with BlueZ through DBUS.
However, to get it working, I had to change a few things.
ServiceData,ManufacturerDataandUUIDsproperties of the BlueZ Device interfaceHow do you feel about it ? Any suggestion ?