I would like to have 31 bytes for my own in advertising and so far I have disabled everything except adv_flags (it still takes 3 bytes cause of length, AD type and value). Is it also possible to disable flag sending ?
I would like to have 31 bytes for my own in advertising and so far I have disabled everything except adv_flags (it still takes 3 bytes cause of length, AD type and value). Is it also possible to disable flag sending ?
Check the Bluetooth spec, Volume 3, Part C (Generic Access Protocol), section 9.2. That describes each of the modes of advertising and for general and limited it requires that the flags are included. So no you can't leave them out.
Nordic's ble_advdata module kindly checks for this and gives an invalid parameter if you try. You can use the whole of the scan data however.