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

Pizza Example does not work #37

Open msomeha opened 5 years ago

msomeha commented 5 years ago

I get the following error when I try to run the project. Any solution for this issue?

Traceback (most recent call last): File "peripheral.py", line 25, in pizzaService = PizzaService(Pizza()) File "/home/pi/pybleno/examples/pizza/PizzaService.py", line 11, in init PizzaCrustCharacteristic(pizza), File "/home/pi/pybleno/examples/pizza/PizzaCrustCharacteristic.py", line 18, in init value = 'Gets or sets the type of pizza crust.' TypeError: init() got an unexpected keyword argument 'uuid'

msomeha commented 5 years ago

Found the solution. You just need to fix the string detection in the Descriptor.py. From this: if options['value'] is str: to this: if isinstance(options['value'], str):

ShinChoon commented 2 years ago

Found the solution. You just need to fix the string detection in the Descriptor.py. From this: if options['value'] is str: to this: if isinstance(options['value'], str):

No it is already edited but still has the same error

JHorwitz1011 commented 1 year ago

anyone make any progress on this?

AFAIK it looks like a javascript to python conversion error...