diff options
author | Alex King <alex_w_king@yahoo.com> | 2017-06-14 21:03:42 -0500 |
---|---|---|
committer | Damien George <damien.p.george@gmail.com> | 2017-12-13 14:48:53 +1100 |
commit | 78302f7bb2b32ce8ad91d9d3a4ef55f5c7f8840e (patch) | |
tree | 0b130e0f0f1faa403d8e382a5bef830cf5e09386 /docs/esp8266/tutorial | |
parent | 9acd5906754dd794e964a915bbb88fce25cb3bc5 (diff) | |
download | micropython-78302f7bb2b32ce8ad91d9d3a4ef55f5c7f8840e.tar.gz micropython-78302f7bb2b32ce8ad91d9d3a4ef55f5c7f8840e.zip |
esp32/modesp: Add osdebug() function to disable or change IDF logging.
Code lineage:
osdebug() is based loosely on the version in esp8266, but there didn't
seem to be an obvious way of choosing a particular UART. The basic
behavior is the same, though: provide None, and logging is disabled;
provide an integer and logging is restored to the default level.
To build on that, and because the IDF provides more functionality, a
second parameter has now been implemented which allows the active log
level to be set:
esp.osdebug(uart[, level])
The module has a corresponding set of LOG_ values to set this accordingly.
Diffstat (limited to 'docs/esp8266/tutorial')
0 files changed, 0 insertions, 0 deletions