Example #1
0
def stop_pairing():
    try:
        agent.kill()
    except:
        return False
    bluetooth_enable_ssp("hci0")
    return True
Example #2
0
def stop_pairing():
    try:
        agent.kill()
    except:
        return False
    bluetooth_enable_ssp("hci0")
    return True
Example #3
0
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
Example #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