Hello,
I am looking for an example script to retrieve the servicedatauuid and servicedata of any bluetooth device.
as :
- uuid => 0xfdcd
- data => 08094411444422880104e500c6020702aa2702012d
Thanks
Hello,
I am looking for an example script to retrieve the servicedatauuid and servicedata of any bluetooth device.
as :
- uuid => 0xfdcd
- data => 08094411444422880104e500c6020702aa2702012d
Thanks
Each BT device has its own protocol, so there is no general way to unpack the service data.
For Shelly blu its bthome and there is a BTHome page describing how the service payload was packed.
So each device can have a different protocol and each protocol is encoded differently, thats why there is no general script for this.
Hello,
Thank you for your answer.
I'm not looking to unpack Service Data.
This work can be done with Theengs Gateway.
What I'm looking for is just to have the Service Data UUID and Service Data.
I looked at the ble-shelly-btn.js and ble-shelly-dw.js scripts but I don't see how to get these elements.
Hmm, okay.
You can extract the UUID from a Script Bluetooth Scanner.
For instance, a Bluetooth scanner blu service message, look like this: svc={"fcd2":"RAD0AWQFhAMALQA/AAA="},
the part before the colon is the UUID. In this example, it's "fcd2."
You can extract the UUID from a Script Bluetooth Scanner.
Thanks,
Do you have an example of this Script Bluetooth Scanner?