Repository navigation
Replies: 2 comments
|
The index selects a service data field, not a byte (source). Use: std::string sd = advertisedDevice->getServiceData(NimBLEUUID((uint16_t)0xFD3D));
// sd[0] = 0x77, sd[1] = 0x00, sd[2] = 0x63 |
0 replies
|
Thanks! |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Hi,
I'm trying to access the ServiceData of a BLE advertising payload.
The payload is 0201060fff6909e20a0c4d4063960b0587480006163dfd770063
The payload ends by the service data 06 16 3d fd 77 00 63.
06 is the length of the service data. 16 means "Service Data".
The service data UUID is 3d fd.
The question is : "how to access the service data "77 00 e3"?
advertisedDevice->getServiceData<uint8_t>(0) returns 0x77. ok.
advertisedDevice->getServiceData<uint8_t>(1) returns 0x00. ok?
advertisedDevice->getServiceData<uint8_t>(2) returns 0x00. why?? why not E3??
All reactions