RT-Thread-packages / at_device

AT component porting or samples for different devices
Apache License 2.0
217 stars 181 forks source link

为啥没有具体指令? #71

Closed zakigo closed 5 years ago

zakigo commented 5 years ago

例如ESP8266的AT+CWLAP指令都没有

Lawlieta commented 5 years ago

直接调用 at_device_control 函数可以设置 WIFI 账号密码,可以直接封装导出命令,可以查看如下代码:

https://github.com/RT-Thread-packages/at_device/blob/master/class/esp8266/at_device_esp8266.c#L847-L913

更多需要的命令支持,我建议是直接在 at_device_control 中实现,然后在应用层导出命令,模块命令较多不会全部涉及到,at_device 软件包中更多提供抽象方法,希望理解

zakigo commented 5 years ago

哦哦,你们这个包只需要联网就可以实现socket通信。我理解错了,我以为是完全控制AT设备