An Arduino library for creating custom BLE peripherals with Nordic Semiconductor's nRF8001 or nR51822.
464
stars
180
forks
source link
Device no longer advertises when setting single byte using setManufacturerData #247
Open
CharlesMod opened 6 years ago
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));