This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

Why long range advertising cannot be filtered by uuid?

If you are broadcasting in normal mode, this code will not report an error. But if you are broadcasting in long range mode, this code will cause a  FATAL ERR. If you are broadcasting in long range mode, you will not be able to filter devices by UUID.

Parents
  • Hi

    The following if-loop confuses me:

    #if 0    
        
        init.advdata.flags              = BLE_GAP_ADV_FLAGS_LE_ONLY_LIMITED_DISC_MODE;
    #else    
        
        init.advdata.flags              = BLE_GAP_ADV_FLAGS_LE_ONLY_GENERAL_DISC_MODE;

    Can you please explain your thoughts behind this?

    As the UUIDs are part of the scan response data in your advertisement, you won't be able to use these when doing long-range advertising, as Coded PHY does not support scan response data.

    Best regards,

    Simon

Reply
  • Hi

    The following if-loop confuses me:

    #if 0    
        
        init.advdata.flags              = BLE_GAP_ADV_FLAGS_LE_ONLY_LIMITED_DISC_MODE;
    #else    
        
        init.advdata.flags              = BLE_GAP_ADV_FLAGS_LE_ONLY_GENERAL_DISC_MODE;

    Can you please explain your thoughts behind this?

    As the UUIDs are part of the scan response data in your advertisement, you won't be able to use these when doing long-range advertising, as Coded PHY does not support scan response data.

    Best regards,

    Simon

Children
Related