alpha-hacks/alpha-bluetooth

ca not receive

Closed this issue · 4 comments

Hi David,

thanks for this Code. I was able to send some commands. Anyhow receiving i just get Errors. The return is always that the Robot is disconnected. Is it working with your Robot?

Thanks Michael

you ar able to start a hts-file on your Robot?

Found the problem. Solved with setting the port to 6 instead of 1

Hi @wettermann32!

I haven't had much time the last months, so thanks for the bugfix, I had the same problem.

You can make a pull request with this change if you want to contribute to the project or I can add it if you don't want to do that.

thanks!!

HowTo: Contributing to open source project

Hi @wettermann32,

I just added the new port number and an example to read the battery. Now you can see this output

b'\xfb\xbf\x06\x18\x00\x1e\xed'
searching ...
found 1 devices
Connected
Sent data
b'\xfb\xbf\t\x18\x1c \x00(\x85\xed'
{'voltage': 7200, 'charge': 'no', 'capacity': 40}

I'm going to close this issue because it's solved.

Thanks for fix it!