When I fire
python3 example.py --recorded -mac xx:xx:xx:xx:xx:xx
I receive the following exception:
File "example.py", line 34, in <module>
band.start_get_previews_data(start_time)
File "/home/homer77/Programming/MiBand2/base.py", line 516, in start_get_previews_data
ts = year + month + day + hour + minute
TypeError: can't concat int to bytes
I already messed around a little with the struc.pack lines to translate everything into bytes type. But then the script breaks again because the byte type doesn't have recode method.
When I fire
python3 example.py --recorded -mac xx:xx:xx:xx:xx:xx
I receive the following exception:I already messed around a little with the struc.pack lines to translate everything into bytes type. But then the script breaks again because the byte type doesn't have recode method.
Is anyone able to reproduce this error?