Can you please tell me why I get an -ENOTSUP error when I set the scan .timeout parameter to anything but 0? Is the suggested workaround to use RTOS functionality to timeout instead?
Can you please tell me why I get an -ENOTSUP error when I set the scan .timeout parameter to anything but 0? Is the suggested workaround to use RTOS functionality to timeout instead?
Hi,
Timeout when scanning is part of the extended advertising HCI command so you should add CONFIG_BT_EXT_ADV=y
in your prj.conf. (Alternatively handle this in your application code and call bt_le_scan_stop()
).