I am using BLE-CC254x-1.4.0. The Bluetooth spec says that for an advertising type, ADV_IND, the payload (AdvData) can be 0-31 octets. When I call GAPRole_SetParameter(GAPROLE_ADVERT_DATA, length, pAd); with a length of 0, the device stops working.
Can anyone tell me how to set the AdvData to zero?
The part of the Bluetooth spec I am referring to is: BLUETOOTH SPECIFICATION Version 4.1 [Vol 6], 2.3.1 Advertising PDUs.