-
Notifications
You must be signed in to change notification settings - Fork 491
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
btle.py doesnt work after reboot #72
Comments
It seems like something in the one of the last changes caused the bluepy to stop working after restart. |
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 |
Cannot compile it (error below) due to "Warnings as errors". 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:
|
As mentioned before, you can comment out the content of mgmt_debug and keep On Wed, Sep 30, 2015 at 2:48 PM, Ian Harvey notifications@github.com
|
I've installed bluez 5.30 (downloaded and built manually).
Then clone and build bluepy.
Then I ran python btle.py XX:YY:...... and it worked perfectly.
However after the first restart is doesnt work anymore.
Connecting to: C4:BE:84:76:F3:14, address type: public
Traceback (most recent call last):
File "btle.py", line 481, in
conn = Peripheral(devAddr, addrType)
File "btle.py", line 193, in init
self.connect(deviceAddr, addrType)
File "btle.py", line 321, in connect
rsp = self._getResp('stat')
File "btle.py", line 278, in _getResp
resp = Peripheral.parseResp(rv)
File "btle.py", line 241, in parseResp
(tag, tval) = item.split('=')
ValueError: need more than 1 value to unpack
Exception ValueError: 'need more than 1 value to unpack' in <bound method Peripheral.del of <main.Peripheral instance at 0x76aef4e0>> ignored
The text was updated successfully, but these errors were encountered: