Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

继续说说ESP8266 #7

Open
techiall opened this issue May 5, 2018 · 0 comments
Open

继续说说ESP8266 #7

techiall opened this issue May 5, 2018 · 0 comments
Labels

Comments

@techiall
Copy link
Owner

techiall commented May 5, 2018

  • 感觉之前太小看 esp8266 这个模块了,只是把它当做单纯的 WiFi 模块,随着单片机的深入学习,还有师兄的提醒,发现这个模块太强大了。(我要把它吹爆

  • 另外更正有点,其实说 esp8266,太笼统了,它分了好几种型号,我用的型号,准确的名称是 esp8266-01 ,因为在找 esp8266 的资料时,会因为型号不一样,因此引脚分布也不一样,导致方案并不是通用的。

  • 以下的内容,是使用了 esp8266-01

esp8266-01
esp8266-01 针脚分布图

最最重要的是阅读官方文档,我看了官方的 AT 指令集文档,发现里面有几个有趣的指令。可以将配置的 AT 指令保存到 Flash 内,断电重启之后也不会丢失。这样子就不需要每一次重启配置连接的 WiFi 等等。

 AT+CWMODE_DEF — 设置当前 Wi-Fi 模式并保存到 Flash

 AT+CWJAP_DEF — 连接 AP,保存到 Flash

 AT+CWAUTOCONN — 上电是否⾃自动连接 AP

 AT+SAVETRANSLINK — 保存透传到 Flash

...

互相配合使用这些 AT 指令,可以提高设备的稳定性。

@techiall techiall mentioned this issue May 14, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant