コード例 #1
0
ファイル: main.py プロジェクト: jorgenmk/pc-ble-driver
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"
コード例 #2
0
ファイル: main.py プロジェクト: lopessec/pc-ble-driver
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"
コード例 #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)