准备工作 1.NodeMCU模块 2.ESPlorer v0.2.0-rc6 事件监听器 NodeMCU采用了事件响应的方式.也就是说,只需为事件设置一个回调函数,当事件发生时,回调函数就会被调用. 注册事件监听器wif.sta.eventMonReg() Please update your program to use the wifi.eventmon API, as the wifi.sta.eventmon___()API is deprecated. 开始监听wifi.sta.eve
mysql 连接闪断自动重连的方法(用在后台运行中的PHP代码)当mysql断开连接 $_instance这个还是有值得 所以会报错 MySQL server has gone away 这个地方需要捕捉异常才可以或许到 需要 清空连接 $_instance 这样就可以重新连接 就会报错了 <pre><?php// 数据库操作类class DB{ // 保存数据库连接 private static $_instance = null; // 连接数据库 public static fun
class class1 { public static void Main(string[] args) { Person ps = new Person(); ps.KouLan(); IFlyable fly = new Person(); fly.KouLan(); Console.ReadKey(); } } public class Person : IFlyable { public void KouLan() { Console.WriteLine("wo hui kou lan
以下内容,我看了多篇文章,整合在一起,写的一个例子,关于dll工程的创建,请参考博客里另一篇文章:http://www.cnblogs.com/pingge/articles/3153571.html 有什么不对的欢迎指正!!! 1.头文件 //testdll.h #ifndef _TESTDLL_H_ #define _TESTDLL_H_ namespace MathFuncs { // This class is exported from the testdll.dll // Retur