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