# smartconfig Example
This example shows how ESP32 connects to AP with ESPTOUCH. Example does the following steps:
* Download ESPTOUCH APP from app store. [Android source code](https://github.com/EspressifApp/EsptouchForAndroid) and [iOS source code](https://github.com/EspressifApp/EsptouchForIOS) is available.
* Compile this example and upload it to an ESP32.
* Make sure your phone connect to target AP (2.4GHz).
* Open ESPTOUCH app and input password. There will be success message after few sec.
### Example output
Here is an example of smartconfig console output.
```
I (372) wifi: mode : sta (24:0a:c4:00:44:86)
I (422) smartconfig: SC version: V2.6.6
I (3802) wifi: ic_enable_sniffer
I (3802) sc: SC_STATUS_FIND_CHANNEL
I (234592) smartconfig: TYPE: ESPTOUCH
I (234592) smartconfig: T|PHONE MAC:68:3e:34:88:59:bf
I (234592) smartconfig: T|AP MAC:a4:56:02:47:30:07
I (234592) sc: SC_STATUS_GETTING_SSID_PSWD
I (239922) smartconfig: T|pswd: 123456789
I (239922) smartconfig: T|ssid: IOT_DEMO_TEST
I (239922) smartconfig: T|bssid: a4:56:02:47:30:07
I (239922) wifi: ic_disable_sniffer
I (239922) sc: SC_STATUS_LINK
I (239932) sc: SSID:IOT_DEMO_TEST
I (239932) sc: PASSWORD:123456789
I (240062) wifi: n:1 0, o:1 0, ap:255 255, sta:1 0, prof:1
I (241042) wifi: state: init -> auth (b0)
I (241042) wifi: state: auth -> assoc (0)
I (241052) wifi: state: assoc -> run (10)
I (241102) wifi: connected with IOT_DEMO_TEST, channel 1
I (244892) event: ip: 192.168.0.152, mask: 255.255.255.0, gw: 192.168.0.1
I (244892) sc: WiFi Connected to ap
I (247952) sc: SC_STATUS_LINK_OVER
I (247952) sc: Phone ip: 192.168.0.31
I (247952) sc: smartconfig over
```
没有合适的资源?快使用搜索试试~ 我知道了~
资源推荐
资源详情
资源评论
收起资源包目录
乐鑫Esp32实现smartConfig和微信airKiss,一键配网轻松快捷连接路由器。 (1309个子文件)
libmbedtls.a 2.96MB
liblwip.a 2.02MB
libdriver.a 1.91MB
liblibsodium.a 1.68MB
libnghttp.a 1.48MB
libexpat.a 1.18MB
libesp32.a 818KB
libnvs_flash.a 625KB
libmdns.a 579KB
libfreertos.a 570KB
libspiffs.a 555KB
libwpa_supplicant.a 539KB
libcoap.a 445KB
libconsole.a 386KB
libfatfs.a 361KB
libjson.a 315KB
libopenssl.a 273KB
libwear_levelling.a 205KB
libspi_flash.a 198KB
libheap.a 190KB
libbootloader_support.a 181KB
libbootloader_support.a 171KB
libethernet.a 158KB
libmicro-ecc.a 151KB
libmicro-ecc.a 151KB
libsoc.a 131KB
libtcpip_adapter.a 128KB
libmain.a 122KB
libsoc.a 119KB
libvfs.a 118KB
libsdmmc.a 105KB
libpthread.a 99KB
libnewlib.a 83KB
libcxx.a 68KB
libapp_update.a 51KB
libspi_flash.a 50KB
libesp_adc_cal.a 39KB
liblog.a 39KB
libulp.a 37KB
libmain.a 31KB
libapp_trace.a 22KB
liblog.a 21KB
libjsmn.a 21KB
libxtensa-debug-module.a 12KB
libbt.a 2KB
libidf_test.a 8B
libaws_iot.a 8B
smart_config.bin 510KB
bootloader.bin 19KB
partitions_singleapp.bin 3KB
smartconfig_main.c 3KB
auto.conf.cmd 1KB
auto.conf 16KB
tristate.conf 101B
.cproject 7KB
cpu_start.d 33KB
subscribe.d 31KB
resource.d 31KB
async.d 31KB
memp.d 30KB
tcpip_adapter_lwip.d 29KB
net.d 29KB
mdns.d 28KB
init.d 28KB
timers.d 27KB
system_api.d 27KB
emac_main.d 27KB
sockets.d 27KB
net_sockets.d 27KB
debug.d 27KB
wlanif.d 27KB
api_msg.d 27KB
api_lib.d 27KB
netif.d 26KB
ip4.d 26KB
ethernetif.d 26KB
tcpip.d 26KB
lwip_debug.d 26KB
dhcpserver.d 26KB
smartconfig_main.d 26KB
ip6.d 25KB
ping.d 25KB
pdu.d 25KB
sntp.d 25KB
pbuf.d 25KB
coap_io_socket.d 25KB
uri.d 25KB
dhcp.d 25KB
etharp.d 25KB
udp.d 25KB
smartconfig.d 25KB
block.d 25KB
tcp_out.d 25KB
tcp.d 25KB
event_default_handlers.d 25KB
option.d 25KB
tcp_in.d 25KB
ip_frag.d 25KB
icmp6.d 25KB
nd6.d 25KB
共 1309 条
- 1
- 2
- 3
- 4
- 5
- 6
- 14
资源评论
半颗心脏
- 粉丝: 1w+
- 资源: 48
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功