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.

Parents
  • I do not think there is a way to change the manufacturer data when the radio is running. There is way to change the data in the Service Data AD type when the radio is running. However it should be possible to advertise both manufacturer data and the service UUID, so long as you do not overflow the 31 bytes available in the advertising packet.

    See the nRFgo studio -> nRF8001 configuration -> GAP Settings , see the right side of the screen to select what can be advertised.

Reply
  • I do not think there is a way to change the manufacturer data when the radio is running. There is way to change the data in the Service Data AD type when the radio is running. However it should be possible to advertise both manufacturer data and the service UUID, so long as you do not overflow the 31 bytes available in the advertising packet.

    See the nRFgo studio -> nRF8001 configuration -> GAP Settings , see the right side of the screen to select what can be advertised.

Children
Related