This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

Arduino blend micro changing advertisement data

Hello, I am working with Arduino blend micro BLE, i am trying to change some advertisement data and uuid service. I am using the BLEPeripheral library and the next functions:

blePeripheral.setLocalName("service"); 
blePeripheral.setManufacturerData(manu_data, sizeof(manu_data));
blePeripheral.setAdvertisedServiceUuid(service.uuid()); 

blePeripheral.addAttribute(service);
blePeripheral.addAttribute(characteristic);

characteristic.setValue(0);
// begin initialization
blePeripheral.begin();

But when i am trying to change the manufacturer data and service UUID, the nrf controller app shows me only the service UUID and not the manufacturer data. Only if i am using the blePeripheral.setManufacturerData() function alone (without the blePeripheral.setAdvertisedServiceUuid() function), i can see the manufacturer data in the nrf controller app. Please help me to advertise the specific manufacture data and the service UUID together.

Related