Closed elwerene closed 4 years ago
That doesn't say that it is allowed to leave out the entire flags byte though. The flags structure also has a BR_EDR_NOT_SUPPORTED
flag which we set. If that flag is required when classic BT is not supported, then we cannot leave out the flags.
Ah nevermind, the Core Specification Supplement says:
The Flags data type shall be included when any of the Flag bits are non-zero and the advertising packet is connectable, otherwise the Flags data type may be omitted.
Bluetooth specification 4.2:
Sounds to me like sending no Flags AD is totally fine and correct (and saves 3 bytes).