arduino-BLEPeripheral
arduino-BLEPeripheral copied to clipboard
Device no longer advertises when setting single byte using setManufacturerData
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));