1、二维码配网
1)zbar 二维码解析开源库链接 http://sourceforge.net/projects/zbar
2、AP配网
大致过程:
1)配置hostapd.conf文件
2)启动hostapd /tmp/hostapd.conf -B,并配置wlan1的ip地址ifconfig wlan1 192.168.233.231
3)启动udhcpd /etc/udhcpd.conf服务
4)使用UDP报文发送wifi账号密码到智能设备(224.0.0.1特指所有主机,224.0.0.2特指所有路由器)