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.
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.
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
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
Hi
The if-loop is just a test code to change the duration of the broadcast in different modes.
Well, if there's no way to filter by UUID in long-range mode, i will have to use other methods.
Thank you very much for your careful answer.