CANDY-LINE / node-red-contrib-generic-ble

A Node-RED node set for providing access to generic BLE peripheral GATT characteristics.
Apache License 2.0
24 stars 22 forks source link

addressType random for Philips Hue BLE #30

Closed dowhiletrue closed 4 years ago

dowhiletrue commented 4 years ago

Using gatttool -t random I'm able to control my Philips bulb BLE. Is there an option in node-red-contrib-generic-ble to switch from addressType=public to random as described in noble?

gobo-ws commented 4 years ago

@dowhiletrue Not related to your question but can you please share any example how you use GATTTool with a Hue BLE bulb? Thanks!

dowhiletrue commented 4 years ago

@gobo-ws e.g. gatttool -t random -b [MAC] --char-write-req --handle=0x0027 --value=01 to turn the light on. More about the characteristics can be found here.

gobo-ws commented 4 years ago

@dowhiletrue Many thanks!

dowhiletrue commented 4 years ago

With debug enabled the following error is reported: [error] [Generic BLE in:a883f0.0bf93c1] <undefined> read: (err:TypeError: Converting circular structure to JSON)

Does anybody have the same issue?

dbaba commented 4 years ago

Unfortunately, the random address type is not supported in this version.