Beispiel #1
0
def start_scan():
    error_code = ble_driver.sd_ble_gap_scan_start(scan_params)

    if error_code != ble_driver.NRF_SUCCESS:
        print "Scan start failed"
        return

    print "Scan started"
Beispiel #2
0
def start_scan():
    error_code = ble_driver.sd_ble_gap_scan_start(scan_params)

    if error_code != ble_driver.NRF_SUCCESS:
        print "Scan start failed"
        return

    print "Scan started"
Beispiel #3
0
def start_scan():
    error_code = ble_driver.sd_ble_gap_scan_start(ble_scan_params)

    print "Started scan with return code: 0x{0:02X}".format(error_code)