示例#1
0
文件: bluez.py 项目: AldwinP/pybluez
def stop_advertising (sock):
    try:
        _bt.sdp_stop_advertising (sock._sock)
    except _bt.error as e:
        raise BluetoothError (str (e))
示例#2
0
def stop_advertising(sock):
    try:
        _bt.sdp_stop_advertising(sock._sock)
    except _bt.error, e:
        raise BluetoothError(str(e))
示例#3
0
def stop_advertising(sock):
    try:
        _bt.sdp_stop_advertising(sock._sock)
    except _bt.error as e:
        raise BluetoothError(*e.args)