ARMmbed / ble-x-nucleo-idb0xa1

port of BLE_API to ST BLE shield
14 stars 5 forks source link

Manufacturer specific data field can't be set in advertising or scan response payload #1

Closed pan- closed 8 years ago

pan- commented 8 years ago

It is not possible to add a manufacturer specific data field into advertising or scan response payload.

The following code does not had anything into advertising payload.

static const uint8_t data = { 0x00, 0x01, 0x02, 0x03 };
ble.accumulateAdvertisingPayload(
   GapAdvertisingData::MANUFACTURER_SPECIFIC_DATA, 
   data, 
   sizeof(data)
);
apalmieriGH commented 8 years ago

Commit 48efa6f solves this issue