This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Problem setting an advertising packet payload to 0, even though spec says I should be able to.

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.