arduino-BLEPeripheral icon indicating copy to clipboard operation
arduino-BLEPeripheral copied to clipboard

Device no longer advertises when setting single byte using setManufacturerData

Open CharlesMod opened this issue 6 years ago • 0 comments

Encountered a bug where the device would no longer advertise if attempting to add only a single byte of manufacturing data.

Example that works:

const unsigned char manufacturerData[2] = {0xFF, 0}; blePeripheral.setManufacturerData(manufacturerData, sizeof(manufacturerData));

Example that doesn't:

const unsigned char manufacturerData[1] = {0xFF}; blePeripheral.setManufacturerData(manufacturerData, sizeof(manufacturerData));

CharlesMod avatar Sep 04 '18 20:09 CharlesMod