简体   繁体   English

无需配置即可从 android 向 esp32 发送本地 wifi ssid 和密码

[英]sending local wifi ssid and password to esp32 from android without configuration

I have an esp32 which is going to read data from dht11 and since it might be in different local networks , I initially want to find esp32 (connect to it) by android phone and pass the ssid and password of local network to it.我有一个esp32将从 dht11 读取数据,因为它可能在不同的本地网络中,我最初想通过 android 手机找到 esp32(连接到它)并将本地网络的 ssid 和密码传递给它。 and after passing ssid and password , they both connect to the local network .并通过ssid和密码后,他们都连接到本地网络。 how can I achieve this especially if there is a way for android phone not disconnecting from the local network during passing the data to esp32 .我怎么能做到这一点,特别是如果在将数据传递到 esp32 期间,android 手机不会断开与本地网络的连接。 I have come a across some solutions like wifi direct or auto connect , but I'm not sure.我遇到了一些解决方案,例如wifi directauto connect ,但我不确定。
any solutions and recommendations and sample code for esp32 would be appreciated...任何解决方案和建议以及esp32 的示例代码将不胜感激......

我找到了答案:将 smartConfig 示例与 esp32 一起使用,并将 ESPTOUCH 用于 android 手机。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM