Giter Club home page Giter Club logo

Comments (5)

shailurie avatar shailurie commented on August 22, 2024

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.

IanHarvey avatar IanHarvey commented on August 22, 2024

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.

shailurie avatar shailurie commented on August 22, 2024

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.

IanHarvey avatar IanHarvey commented on August 22, 2024

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.

shailurie avatar shailurie commented on August 22, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.