Solved
Change the BLE advertisment value on stm32wb5mm
Hello I'm very new in stm32wbX programming and I've created a ble service with custom advertise data packet 0xff with values 0x60,0x61 in app_ble.c
uint8_t a_AdvData[12] =
{
7, AD_TYPE_COMPLETE_LOCAL_NAME, 'B', 'E', 'A', 'C', 'O', 'N', /* Complete name */
3, AD_TYPE_MANUFACTURER_SPECIFIC_DATA,0x60,0x61,
};
Now what i want it's change the values of data packets, so i've tried to call a function from custom_app.c but seems to crash and i can't see any beacon.
What do you suggest to change the values?
Thanks!
void CustomPrint(){
printf("Called\n");
tBleStatus status;
uint8_t adv_data[12] =
{
7, AD_TYPE_COMPLETE_LOCAL_NAME, 'C', 'H', 'A', 'N', 'G', 'E', /* Complete name */
3, AD_TYPE_MANUFACTURER_SPECIFIC_DATA,0x70,0x71,
};
status =aci_gap_update_adv_data(adv_data, (uint8_t*) adv_data);
printf("End \n");
}
