This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts
This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

ADV flags role ?

Is it right that this flag BLE_GAP_ADV_FLAG_BR_EDR_NOT_SUPPORTED, prevent my device to be discovered by classic Bluetooth stacks?

Which of these flags do I need to use to let my device be discovered whatever is the stack to discover it and connect to it ?

1-BLE_GAP_ADV_FLAG_LE_BR_EDR_CONTROLLER

2-BLE_GAP_ADV_FLAG_LE_BR_EDR_HOST

Parents Reply Children
  • Why then we have that flag defined in the SDK examples ?

        /**@defgroup BLE_GAP_ADV_FLAGS GAP Advertisement Flags
     * @{ */
    #define BLE_GAP_ADV_FLAG_LE_LIMITED_DISC_MODE         (0x01)   /**< LE Limited Discoverable Mode. */
    #define BLE_GAP_ADV_FLAG_LE_GENERAL_DISC_MODE         (0x02)   /**< LE General Discoverable Mode. */
    #define BLE_GAP_ADV_FLAG_BR_EDR_NOT_SUPPORTED         (0x04)   /**< BR/EDR not supported. */
    #define BLE_GAP_ADV_FLAG_LE_BR_EDR_CONTROLLER         (0x08)   /**< Simultaneous LE and BR/EDR, Controller. */
    #define BLE_GAP_ADV_FLAG_LE_BR_EDR_HOST               (0x10)   /**< Simultaneous LE and BR/EDR, Host. */
    #define BLE_GAP_ADV_FLAGS_LE_ONLY_LIMITED_DISC_MODE   (BLE_GAP_ADV_FLAG_LE_LIMITED_DISC_MODE | BLE_GAP_ADV_FLAG_BR_EDR_NOT_SUPPORTED)   /**< LE Limited Discoverable Mode, BR/EDR not supported. */
    #define BLE_GAP_ADV_FLAGS_LE_ONLY_GENERAL_DISC_MODE   (BLE_GAP_ADV_FLAG_LE_GENERAL_DISC_MODE | BLE_GAP_ADV_FLAG_BR_EDR_NOT_SUPPORTED)   /**< LE General Discoverable Mode, BR/EDR not supported. */
    /**@} */
    
  • Maybe they should be removed, but Bluetooth Classic is not supported.

  • These are just header constants copying BT SIG specification, they are not saying anything about actual support of particular feature. I don't see any reason why to remove them...

Related