0-1-0 / lightblue-0.4

LightBlue python module that compiles successful on OS X 10.8 (Mountain Lion)
GNU General Public License v3.0
96 stars 92 forks source link

NSInvalidArgumentException on send (El Capitain, python 2.7) #11

Open ElliotLockerman opened 8 years ago

ElliotLockerman commented 8 years ago

Hello,
When running the simple_server.py example, the read is successful, but the write fails.

Connected by ('10:BF:48:D1:22:B8', 1)
Echoing received data: This is my test
Traceback (most recent call last):
  File "simple_server.py", line 18, in <module>
    conn.send(data)
  File "build/bdist.macosx-10.6-x86_64/egg/lightblue/_bluetoothsockets.py", line 524, in send
  File "build/bdist.macosx-10.6-x86_64/egg/lightblue/_bluetoothsockets.py", line 737, in write
ValueError: NSInvalidArgumentException - Class OC_PythonObject: no such selector: bytes

Thanks.