Adam-Langley / pybleno

A direct port of the Bleno bluetooth LE peripheral role library to Python2/3
MIT License
68 stars 34 forks source link

🐛 Exception in thread HCISocketPoller #55

Open JAICHANGPARK opened 2 years ago

JAICHANGPARK commented 2 years ago
Exception in thread HCISocketPoller:
Traceback (most recent call last):
  File "/usr/lib/python3.8/threading.py", line 932, in _bootstrap_inner
    self.run()
  File "/usr/lib/python3.8/threading.py", line 870, in run
    self._target(*self._args, **self._kwargs)
  File "/home/jaichang/.local/lib/python3.8/site-packages/pybleno/hci_socket/BluetoothHCI/BluetoothHCI.py", line 197, in _socket_poller
    self._socket_on_data_user_callback(bytearray(data))
  File "/home/jaichang/.local/lib/python3.8/site-packages/pybleno/hci_socket/Hci.py", line 387, in onSocketData
    self.processCmdCompleteEvent(cmd, status, result)
  File "/home/jaichang/.local/lib/python3.8/site-packages/pybleno/hci_socket/Hci.py", line 488, in processCmdCompleteEvent
    self.emit('leAdvertiseEnableSet', [status])
  File "/home/jaichang/.local/lib/python3.8/site-packages/pybleno/hci_socket/Emit.py", line 17, in emit
    handler(*arguments)
  File "/home/jaichang/.local/lib/python3.8/site-packages/pybleno/hci_socket/Gap.py", line 190, in onHciLeAdvertiseEnableSet
    self.emit('advertisingStart', [error])
  File "/home/jaichang/.local/lib/python3.8/site-packages/pybleno/hci_socket/Emit.py", line 17, in emit
    handler(*arguments)
  File "/home/jaichang/.local/lib/python3.8/site-packages/pybleno/hci_socket/Bindings.py", line 115, in onAdvertisingStart
    self.emit('advertisingStart', [error])
  File "/home/jaichang/.local/lib/python3.8/site-packages/pybleno/hci_socket/Emit.py", line 17, in emit
    handler(*arguments)
  File "/home/jaichang/.local/lib/python3.8/site-packages/pybleno/Bleno.py", line 158, in onAdvertisingStart
    self.emit('advertisingStart', [error])
  File "/home/jaichang/.local/lib/python3.8/site-packages/pybleno/hci_socket/Emit.py", line 17, in emit
    handler(*arguments)
  File "jeffrey/ex_pybleno.py", line 63, in onAdvertisingStart
    print('on -> advertisingStart1: ' + ('error ' + error if error else 'success'))
TypeError: can only concatenate str (not "Exception") to str