You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on May 7, 2025. It is now read-only.
Repository navigation
This repository was archived by the owner on May 7, 2025. It is now read-only.
######## it raises error as below ########
mpython soft reboot
Traceback (most recent call last):
File "main.py", line 5, in
File "blynktimer.py", line 37, in init
TypeError: object of type 'dict_view' has no len()
MicroPython v1.3.0-11-g537a05c on 2019-04-08; mPython with ESP32
Type "help()" for more information.
dict_view corrections were done in new fix (Thx for your findings). But there possible further issues with select.select usage. According official documentation https://docs.micropython.org/en/latest/library/uselect.html "..This function is provided by some MicroPython ports ..." so NOT all micropython versions can support it. Here you can be lucky or ...not.
Also within TIMERS.md I had mentioned other options of building timers for micropython. Just check please https://docs.micropython.org/en/latest/library/machine.Timer.html
If this option will be inconvenient for you just let me know - i will try to think about solution compatible for all micropython ports.
------------------ 原始邮件 ------------------
发件人: "antohaUa"<notifications@github.com>;
发送时间: 2019年4月25日(星期四) 下午4:51
收件人: "blynkkk/lib-python"<lib-python@noreply.github.com>;
抄送: "蓝鹰"<2477573600@qq.com>; "Author"<author@noreply.github.com>;
主题: Re: [blynkkk/lib-python] an error in blynktimer.py (#2)
Additionally added support of cases when select.select wait is not supported by OS or micropython port.
Issue can be closed.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or mute the thread.
Activity
antohaUa commentedon Apr 22, 2019
dict_view corrections were done in new fix (Thx for your findings). But there possible further issues with select.select usage. According official documentation https://docs.micropython.org/en/latest/library/uselect.html "..This function is provided by some MicroPython ports ..." so NOT all micropython versions can support it. Here you can be lucky or ...not.
Also within TIMERS.md I had mentioned other options of building timers for micropython. Just check please https://docs.micropython.org/en/latest/library/machine.Timer.html
If this option will be inconvenient for you just let me know - i will try to think about solution compatible for all micropython ports.
antohaUa commentedon Apr 25, 2019
Additionally added support of cases when select.select wait is not supported by OS or micropython port.
Issue can be closed.
LahmYing commentedon Apr 25, 2019