SmartConfig ESP8266 for NodeMCU and AT-commands
- A simple breakout board of ESP8266 on breadboard can do most of NodeMCU work.
- Also need a PL2303 USB-TTL programmer
Most wifi embedded project will not have too much input and output resource to let the user enter the wifi SSID and password info, so we normally config this via phone app. This is the solution called smartconfig, used by ESP8266.
We will just show the demo here.
Using normal AT-commands, you can find the AT instructions documents from espresssif bbs, support espressif’s smartconfig called ESP-Touch or Chinese wechat technique air-kiss:
The command is:
when the config is done, follow by AT+CWSTOPSMART to stop it.
See the demo video below:
search smartconfig in google play to find it.
The more powerful nodemcu can support more libraries and modules, it can be run standalone like a MCU, so it is much more preferable:
Thanks a lot to qq group guy Martint3ch, we figure out the current release of nodemcu 20150704 can not work with new smartconfig tool, so you must use online custom build to build the “dev” version, on the github nodemcu page you can find the online custom build link.
It seems the latest arduino 2.00 sdk can not run smartConfig by using wifi manager library, probably it is not based on the latest SDK (tried on 1/20/2016)
check the demo video below:
In the snippet code:
First set the module to station mode, then start the smartconfig on mode 0 = esp-touch or 1=airkiss.
wifi.setmode(wifi.STATION) wifi.startsmart(0, function(ssid, password) print(string.format("Success. SSID:%s ; PASSWORD:%s", ssid, password)) end )
Next part we will try MQTT to send data to the server online.Tagged