New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
"Failed to register advertisement" when running "cpu_temperature.py" #127
Comments
Hi @JiaGuoWMU , I took a quick look at this and I think all the errors you are seeing are from when you restart the cpu_temperature.py script. If I was looking to make this script more robust I would look to put the pi_cpu_monitor.start_bt() statement in a I would also like to point you to issue #126 to highlight that it is likely Bluezero will move away from using python-dbus to using pydbus. This is another reason why I am reluctant to invest too much time in improving the current examples. |
@ukBaz Hi Barry, thanks for your prompt response. It is a good idea to use a Besides, I also found out the issue is partly because of the version of the bluez. I updated from v5.43 to v5.45, and the issue is solved. |
Really appreciate you coming back and adding what you've learnt. Sounds like I can close this issue for now. |
@ukBaz I installed Bluez 5.43 on Raspberry Pi 3 following the instructions. There are two issues happening.
First, the status shown below has the error messages (last three lines):
Second, after I run "cpu_temperature.py" and connected the Raspberry Pi with a central (e.g., smartphone app), everything works correctly. However, once I stoped the python script and tries to run it again, then I get the following error message:
Any idea how I could fix these issues? Appreciate it.
The text was updated successfully, but these errors were encountered: