Current implementation to set manufacturer data void NimBLEAdvertising::setManufacturerData(const std::string &data)
Issue: Trying to set the first two bytes of the manufacturer data to Manufacturer ID from Bluetooth SIG list (Nordic Semi ASA - 0x0059) results in no manufacturer data shown in advertisement
Current implementation to set manufacturer data
void NimBLEAdvertising::setManufacturerData(const std::string &data)
Issue: Trying to set the first two bytes of the manufacturer data to Manufacturer ID from Bluetooth SIG list (Nordic Semi ASA - 0x0059) results in no manufacturer data shown in advertisement
Current implementation:
My example where it breaks:
m_mfgData.size() returns zero since the first byte in dataToAdvertise array is a null-character (0)
Proposed Alternative:
We can overload the setManufacturerData function with the uint8_t* type and a length parameter to update the advertising vector