会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
陈富林
不懂就问,不吝赐教。
博客园
首页
新随笔
联系
管理
上一页
1
···
5
6
7
8
9
10
11
12
13
···
31
下一页
2018年4月20日
Python MQTT订阅获取发布信息字典过滤
摘要: 起因是因为 订阅的时候,获取到的 MQTT 信息时,第一条信息好像是连接信息,所以需要过滤他。 接收到的数据如下 必须要过滤这个 name : 1 的字典,操作如下: 在 Python3 里面,已经没有 dict.has_key 的操作,判断里面是否有这个 key ,所以只能用 if "name"
阅读全文
posted @ 2018-04-20 10:39 陈富林
阅读(1293)
评论(0)
推荐(0)
2018年4月19日
Python MQTT 最简单例程搭建
摘要: MQTT 不是普通的 client server 模型,他还加了一个 代理者。 下载 broker 代理 server 代码编写 client 代码编写 启动
阅读全文
posted @ 2018-04-19 13:28 陈富林
阅读(15228)
评论(3)
推荐(1)
2018年4月18日
Linux 获取 MAC 地址并去除 : 字符
摘要: ```c ifconfig -a | grep eth0 | awk -F ' ' '{print $5}' | sed 's/://g' ```
阅读全文
posted @ 2018-04-18 15:33 陈富林
阅读(565)
评论(0)
推荐(0)
2018年4月13日
openwrt MT7620 固件编译记录
摘要: 下载,安装相关软件 下载完了之后更新 配置参考 遇到问题 c install d m0755 /bin install m0755 src/po2lmo /bin/po2lmo install: cannot create regular file '/bin/po2lmo': Permission
阅读全文
posted @ 2018-04-13 17:21 陈富林
阅读(2624)
评论(0)
推荐(0)
2018年4月12日
SHT30 Linux标准 i2c-dev 读取程序
摘要: ```c include include include include include include include include include include include define I2C_DEV "/dev/i2c 2" int main(void){ int tmp75Fd;
阅读全文
posted @ 2018-04-12 19:02 陈富林
阅读(1346)
评论(1)
推荐(0)
2018年4月11日
Linux watchdog 关闭退出功能
摘要: Linux 程序退出的时候,程序是会把 watchdog 调用 release 功能。
阅读全文
posted @ 2018-04-11 17:50 陈富林
阅读(5057)
评论(0)
推荐(0)
2018年4月10日
LInux 文件系统 tmpfs 分区不显示解决
摘要: 因为不小心把 kernel 的 tmpfs 的选项去掉,导致 文件系统内的 tmpfs 分区不显示。 kernel 打开如下选项即可 在文件系统内就会有相关显示
阅读全文
posted @ 2018-04-10 09:50 陈富林
阅读(672)
评论(0)
推荐(0)
am335x 配置 GPIO 为可输入也可输出
摘要: 主要配置设备树如下模式即可
阅读全文
posted @ 2018-04-10 09:48 陈富林
阅读(1147)
评论(0)
推荐(0)
2018年4月8日
Linux shell 常用 加减乘除记录
摘要: + 运算 运算 运算 / 运算 取 余
阅读全文
posted @ 2018-04-08 18:15 陈富林
阅读(2244)
评论(0)
推荐(0)
2018年3月30日
git diff 的用法
摘要: 前言:想看一下 git 记录里面某个文件的改动。记录一下 git diff 的用法
阅读全文
posted @ 2018-03-30 09:55 陈富林
阅读(13061)
评论(0)
推荐(1)
上一页
1
···
5
6
7
8
9
10
11
12
13
···
31
下一页
公告