• Amazing, saved me a heap of testing.

    i get an error with your code

    python puck_serial.py D8:19:E7:5B:3A:57
    
    > Traceback (most recent call last):   File "puck_serial.py", line 13,
    > in <module>
    >     p = Peripheral(sys.argv[1], "random")   File "/usr/local/lib/python2.7/dist-packages/­bluepy/btle.py", line 391, in
    > __init__
    >     self._connect(deviceAddr, addrType, iface)   File "/usr/local/lib/python2.7/dist-packages/­bluepy/btle.py", line 439, in
    > _connect
    >     raise BTLEDisconnectError("Failed to connect to peripheral %s, addr type: %s" % (addr, addrType), rsp)
    > bluepy.btle.BTLEDisconnectError: Failed to connect to peripheral
    > D8:19:E7:5B:3A:57, addr type: random
    
About

Avatar for Ossama @Ossama started