sinkuri256 / android-scripting

Automatically exported from code.google.com/p/android-scripting
0 stars 0 forks source link

Unable to send byte video bluetoothWrite #446

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
I'm trying to send byte code out over Bluetooth to control a Roomba via this 
device:
http://www.sparkfun.com/commerce/product_info.php?products_id=684

When I call bluetoothWrite having passed in chr(128) I get a 
UnicodeDecodeError: 'utf8' codec can't decode byte 0x80 in position 0: 
unepxected code byte.

I've tried sending '\x80' and it doesn't throw an error but I'm not sure it is 
going through because I get no response on the Roomba. Has anyone else 
controlled a Roomba using SL4A and/or Python? 

Original issue reported on code.google.com by rhickman on 25 Sep 2010 at 5:45

GoogleCodeExporter commented 9 years ago

Original comment by damonkoh...@gmail.com on 25 Sep 2010 at 9:36