Solved
non-const pointers as ACI commands' arguments
I wonder why are all ACI commands, that imply using pointer-to-const parameters actually use non-const ones? Is there any reason? Will it ever be fixed?
For example:
tBleStatus aci_gatt_add_service(uint8_t Service_UUID_Type,
Service_UUID_t *Service_UUID,
uint8_t Service_Type,
uint8_t Max_Attribute_Records,
uint16_t *Service_Handle)
{
<...>
Osal_MemCpy((void *) &cp0->Service_UUID, (const void *) Service_UUID, size);
<...>
}