bt_adapter_le_start_scan Callback was not working on Gear S3

bt_adapter_le_start_scan Callback was not working on Gear S3

BY 18 Nov 2016 Native Application Development

I used the following code to search for Bluetooth LE devices around the Gear.

 

    bt_error_e ret;

	ret = bt_initialize();
	if (ret != BT_ERROR_NONE) {
		dlog_print(DLOG_ERROR, LOG_TAG, "[bt_initialize] failed.");

		return;
	}

	ret = bt_adapter_le_start_scan(scan_complete_cb, ad);
	if (ret != BT_ERROR_NONE) {
		dlog_print(DLOG_ERROR, LOG_TAG, "[bt_adapter_le_start_scan] failed.");
	} else {
		dlog_print(DLOG_INFO, LOG_TAG, "[bt_adapter_le_start_scan] registered");
	}

 

Gears S2 calls scan_complete_cb every time they search for the device normally, but when running the same app in Gears S3, scan_complete_cb is never called.

Is there any problems on my code? Or is there any reported issue with BLE scan in gear S3?

Written by