多线程 调用ESP API
pple 2016-06-06 03:03:10 程序中要有一个从头到尾都执行的while, 为了同时可以执行其他函数,所以用了多线程.
可是其中一个线程中使用esp API(如 renderView()). 会有一下错误提示
错误提示:
Connection is not defined in thread local storage.
If using a callback, make sure you invoke espSetConn with the connection before using the ESP abbreviated API
段错误 (核心已转储)