예제 #1
0
파일: bluetooth.py 프로젝트: jukkar/eca-web
def stop_pairing():
    try:
        agent.kill()
    except:
        return False
    bluetooth_enable_ssp("hci0")
    return True
예제 #2
0
def stop_pairing():
    try:
        agent.kill()
    except:
        return False
    bluetooth_enable_ssp("hci0")
    return True
예제 #3
0
파일: bluetooth.py 프로젝트: jukkar/eca-web
def start_pairing(use_pin, pin):
    # We turn off the secure simple pairing so that the user is able
    # to know the PIN code.
    # TBD: fix the adater name later
    bluetooth_disable_ssp("hci0")
    ret = start_agent(use_pin, pin)
    bluetooth_enable_ssp("hci0")
    return ret
예제 #4
0
def start_pairing(use_pin, pin):
    # TBD: fix the adapter name later
    # always use secure simple pairing
    bluetooth_enable_ssp("hci0")
    ret = start_agent(use_pin, pin)
    return ret