摘要: 前端:HTML、JavaScript后端:Python协议:websocket硬件:树莓派3B+源码:https://github.com/liyongjun123/raspberrypi-projects/tree/master/light演示:https://v.... 阅读全文
posted @ 2018-08-05 20:24 liyongjun 阅读(339) 评论(0) 推荐(0) 编辑
摘要: 参考:https://blog.csdn.net/vermilliontear/article/details/50947379test2.c#include #include #include #include #include #include #include ... 阅读全文
posted @ 2018-07-26 11:24 liyongjun 阅读(545) 评论(0) 推荐(0) 编辑
摘要: 转载:https://zhidao.baidu.com/question/1609920477764046627.htmlOS:cent os 6.5日志路径:/var/log/messages服务器上跑的一个程序,发现报了Killed。查看/var/log/mess... 阅读全文
posted @ 2018-07-26 10:00 liyongjun 阅读(2172) 评论(0) 推荐(0) 编辑
摘要: cJSON中用到了malloc,内存释放什么的我就不说了,我出现的问题是一开始就没分配足够的堆空间,导致程序总是莫名奇妙的死机。如上图,将Heap_Size 改大一点就OK了。 阅读全文
posted @ 2018-07-20 16:00 liyongjun 阅读(637) 评论(0) 推荐(0) 编辑
摘要: OpenWRT应用程序最常用的就是采用package的方式编译。但编写一些简单的测试程序可以直接使用类似 mips-openwrt-linux-uclibc-gcc 的交叉编译工具进行编译,编译后可直接在OpenWRT环境下运行。前几天遇到一个问题运行 hello 时... 阅读全文
posted @ 2018-07-13 17:59 liyongjun 阅读(273) 评论(0) 推荐(0) 编辑
摘要: 环境:RedHat--Centos1.安装 yum install python-setuptoolseasy_install supervisor2.创建配置文件echo_supervisord_conf > /etc/supervisord.conf 3.修... 阅读全文
posted @ 2018-06-07 14:27 liyongjun 阅读(293) 评论(0) 推荐(0) 编辑
摘要: 一、keil:Misc Control选项框添加:--c99 二、eclipse:在图中位置添加:-std=c99 阅读全文
posted @ 2017-06-20 10:08 liyongjun 阅读(185) 评论(0) 推荐(0) 编辑