mongoose-os
mongoose-os copied to clipboard
BLE scanning doesnt work
This is actually about code in https://github.com/mongoose-os-libs/bt-common
Invoking mgos_bt_gap_scan() doesn't work: neither of MGOS_BT_GAP_EVENT_SCAN_STOP or MGOS_BT_GAP_EVENT_SCAN_RESULT are triggered.
It seems changing this to:
.own_addr_type = BLE_ADDR_TYPE_RANDOM,
fixes the issue.
Or,
config_schema:
- ["bt.keep_enabled", true]
- ["bt.random_address", false]