Alvipe / Open-Myo

Python module to get data from a Myo armband using a generic BLE interface
GNU General Public License v3.0
24 stars 14 forks source link

Fix sleep mode #4

Closed qtux closed 6 years ago

qtux commented 6 years ago

Fix issue #3. Set the withResponse parameter to True in order to await the confirmation when setting the sleep mode to make it work.

I've set withResponse=True in all cases except for powering the device off in my implementation (https://github.com/qtux/myo-raw). Maybe you want to consider it as well, it could be more reliable that way.

Alvipe commented 6 years ago

Thanks a lot for your contribution @qtux ! Have you tested it? Does it work? Unfortunately I cannot test it at least until next week.

qtux commented 6 years ago

On 24/07/18 15:40, Álvaro Villoslada wrote:

Thanks a lot for your contribution @qtux ! Have you tested it? Does it work? Unfortunately I cannot test it at least until next week.

I tested it with the main.py and it works (and does not whithout the fix)

Alvipe commented 6 years ago

That's amazing @qtux ! Then I'm going to merge the changes as the error has been solved, thanks a lot for your help!!!