Comments (5)
It seems like something in the one of the last changes caused the bluepy to stop working after restart.
the workaround which works for me is commenting out the mgmt_debug function (the one above the main function) and the call to the function (in main function).
from bluepy.
I can't reproduce your exact error, but I've spotted a problem in the debugging output which might be the cause. If you could let me know whether commit 693d455 fixes the problem that would be useful.
Thanks
Ian
from bluepy.
Cannot compile it (error below) due to "Warnings as errors".
However I can tell you this fix will work because by "disabling" DBG, you "disable" mgmt_debug (which now do nothing) and by that, get a similar code to my workaround above (my 2nd comment).
I wouldn't recommend it as it disables all logs.
Bottom line: comment out line 1398 (DBG in mgmt_debug) and the one above it(to prevent :unused variable 'prefix'), and you're good
Compilation error:
bluepy-helper.c: In function ‘cmd_pair’:
bluepy-helper.c:1180:7: error: unused variable ‘addr’ [-Werror=unused-variable]
bluepy-helper.c: In function ‘cmd_unpair’:
bluepy-helper.c:1230:7: error: unused variable ‘addr’ [-Werror=unused-variable]
bluepy-helper.c: In function ‘mgmt_debug’:
bluepy-helper.c:1396:14: error: unused variable ‘prefix’ [-Werror=unused-variabl
On Sep 24, 2015 2:55 AM, "Ian Harvey" [email protected] wrote:
I can't reproduce your exact error, but I've spotted a problem in the
debugging output which might be the cause. If you could let me know whether
commit 693d455
693d455
fixes the problem that would be useful.Thanks
Ian—
Reply to this email directly or view it on GitHub
#72 (comment).
from bluepy.
The "unused variable" warnings should have been fixed in commit 4611544. I found another possible problem with the debugging output, which was fixed in 79adf50.
Let me know if you still have problems.
Thanks,
Ian
from bluepy.
As mentioned before, you can comment out the content of mgmt_debug and keep
the debugging. I checked it and it works.
Which bluez version should I use with it? (5.29 - 5.35)
On Wed, Sep 30, 2015 at 2:48 PM, Ian Harvey [email protected]
wrote:
The "unused variable" warnings should have been fixed in commit 4611544
4611544.
I found another possible problem with the debugging output, which was fixed
in 79adf50
79adf50
.Let me know if you still have problems.
Thanks,
Ian—
Reply to this email directly or view it on GitHub
#72 (comment).
from bluepy.
Related Issues (20)
- bluepy-helper crashes HOT 1
- Sampling frequency HOT 6
- thon3
- BluePy not compatible with Python 3.10 or newer
- Multiple Instances of a single Service
- Reading Accelerometer Data from SensorTag CC2650
- Try to use timeout HOT 4
- getting temperature data
- unable to make it work on Python 3.7.3
- Failed to connect to peripheral <my mac address>, addr type: random HOT 4
- Select a host Bluetooth device (the one that starts the connection) HOT 7
- ResourceWarning: unclosed file <_io.TextIOWrapper name=6 encoding='UTF-8'>
- Infinite timeout
- HCI Selection Failure HOT 1
- Help! Loaded everything but doesn't see the camera.
- Unable to set connection parameters and advertasing parameters Thingy:52
- Bluepy and Bookworm HOT 6
- Can't connect to any peripherals with Bluetooth adapter hci1
- te
- get_services.py: unable to generate uuids.json
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from bluepy.