AliOS Things开发WiFi模组笔记(1)

1、下载源码
git clone https://github.com/alibaba/AliOS-Things.git

2、编译
编译命令aos make。编译采用的是example@board的模式,如example为example目录下对应的应用helloworld,board则为对应的运行平台linuxhost。

执行aos make helloworld@linuxhost,目标文件在根目录out目录下对应目录下out/helloworld@linuxhost/binary。
在命令行输入netmgrapp@amebaz_dev开始编译,aos将检测交叉编译器,如linux环境变量未发现对应的交叉编译器,aos将自动下载对应的交叉编译器。
将rtl8710bn交叉编译器gcc-arm-none-eabi下载至build/compiler/gcc-arm-none-eabi/Linux64目录
可通过执行aos make VERBOSE=1 netmgrapp@amebaz_dev 来查看详细的编译过程。

3、netmgr
netmgr为Alios-Things下的WiFi网络管理组件,支持start/clear/connect等功能。
使用netmgr connect 360usbwifi 1234567890,连接路由器,ssid为360usbwifi,密码为1234567890。

猜你喜欢

转载自www.cnblogs.com/seamoon23/p/12155439.html