![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
Linux
comerLy
这个作者很懒,什么都没留下…
展开
-
串口初始化
int ComInit(unsigned char ComID,unsigned int Boudrate) { int status; struct termios options;tcflush(ComID,TCIOFLUSH);tcgetattr(ComID, &options);switch(Boudrate){ case 9600: op原创 2017-06-16 15:29:30 · 1853 阅读 · 0 评论 -
Linux下wifi连接AP后自动获取IP地址。
1,使用wpa_supplicant连接过wifi之后。下次再次启动网卡的时候会自动连接到上次的AP,但是无法自动获取IP地址等无法连接网络。 使用一下方法: 创建脚本:/sbin/wpa_action.sh(名字路径无所谓,加上执行权限就OK),内容如下#!/bin/shIFNAME=$1CMD=$2if [ "$CMD" = "CONNECTED" ]; then echo co原创 2017-12-23 10:11:32 · 4636 阅读 · 0 评论