Git Product home page Git Product logo

esptouchforandroid's People

Contributors

afunx avatar st1vms avatar xuxiangjun avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

esptouchforandroid's Issues

esptouch 针对unity开发

目前没有找到esptouch针对unity开发的接口,请问是否可以提供相关开发包或者资料以供参考

allocPort(hostPort=[4025]) is used

我在使用Esptouch配网的时候 选择多个设备进行配网,设备能够正常联网!但是在配网结束的时候 获取不到设备的mac 地址 Esptouch 日志显示hostPort=[4025] 被占用了 请问一下怎么处理 谢谢

D/com.espressif.iot.model.user.EspUser: doEsptouchTaskSynAddDeviceAsyn entrance
07-19 11:24:03.428 28466-29728/com.espressif.iot D/FlymeTrafficTracking: tag (158) com.espressif.iot AsyncTask #3 uid 10274
07-19 11:24:03.429 28466-29728/com.espressif.iot D/FlymeTrafficTracking: tag (159) com.espressif.iot AsyncTask #3 uid 10274
07-19 11:24:03.430 28466-29728/com.espressif.iot D/UDPSocketServer: mServerSocket is created, socket read timeout: 60000, port: 18266
07-19 11:24:03.430 28466-29728/com.espressif.iot D/EsptouchTask: execute()
07-19 11:24:03.432 28466-29728/com.espressif.iot I/EsptouchTask: localInetAddress: /192.168.1.123
07-19 11:24:03.437 28466-29728/com.espressif.iot D/EsptouchTask: send gc code
07-19 11:24:03.437 28466-29729/com.espressif.iot D/EsptouchTask: __listenAsyn() start
07-19 11:24:03.437 28466-29729/com.espressif.iot I/EsptouchTask: expectOneByte: 23
07-19 11:24:03.438 28466-29729/com.espressif.iot D/UDPSocketServer: receiveSpecLenBytes() entrance: len = 11
07-19 11:24:09.443 28466-29728/com.espressif.iot D/EsptouchTask: send gc code
07-19 11:24:15.474 28466-29728/com.espressif.iot D/EsptouchTask: send gc code
07-19 11:24:21.501 28466-29728/com.espressif.iot D/EsptouchTask: send gc code
07-19 11:24:27.523 28466-29728/com.espressif.iot D/EsptouchTask: send gc code
07-19 11:24:33.542 28466-29728/com.espressif.iot D/EsptouchTask: send gc code
07-19 11:24:39.542 28466-29728/com.espressif.iot D/EsptouchTask: send gc code
07-19 11:24:45.555 28466-29728/com.espressif.iot D/EsptouchTask: send gc code
07-19 11:25:03.471 28466-29728/com.espressif.iot I/UDPSocketClient: USPSocketClient is interrupt
07-19 11:25:03.471 28466-29728/com.espressif.iot I/UDPSocketServer: USPSocketServer is interrupt
07-19 11:25:03.471 28466-29728/com.espressif.iot E/UDPSocketServer: mServerSocket is closed
07-19 11:25:03.472 28466-29728/com.espressif.iot D/FlymeTrafficTracking: untag(159) com.espressif.iot AsyncTask #3 uid 10274 60043ms
07-19 11:25:03.474 28466-29729/com.espressif.iot W/System.err: java.net.SocketException: Socket closed
07-19 11:25:03.475 28466-29729/com.espressif.iot W/System.err: at java.net.PlainDatagramSocketImpl.receive0(Native Method)
07-19 11:25:03.475 28466-29728/com.espressif.iot D/com.espressif.iot.model.user.EspUser: doEsptouchTaskSynAddDeviceAsyn requiredActivate = true
07-19 11:25:03.475 28466-29729/com.espressif.iot W/System.err: at java.net.AbstractPlainDatagramSocketImpl.receive(AbstractPlainDatagramSocketImpl.java:147)
07-19 11:25:03.475 28466-29729/com.espressif.iot W/System.err: at java.net.DatagramSocket.receive(DatagramSocket.java:813)
07-19 11:25:03.475 28466-29729/com.espressif.iot W/System.err: at com.espressif.iot.esptouch.udp.UDPSocketServer.receiveSpecLenBytes(UDPSocketServer.java:113)
07-19 11:25:03.475 28466-29729/com.espressif.iot W/System.err: at com.espressif.iot.esptouch.task.__EsptouchTask$1.run(__EsptouchTask.java:173)
07-19 11:25:03.476 28466-29729/com.espressif.iot I/EsptouchTask: receive rubbish message, just ignore
07-19 11:25:03.476 28466-29729/com.espressif.iot D/EsptouchTask: __listenAsyn() finish
07-19 11:25:03.485 28466-29728/com.espressif.iot D/com.espressif.iot.model.user.EspUser: __clearTempStaDeviceList()
07-19 11:25:03.492 28466-30338/com.espressif.iot D/com.espressif.iot.action.device.common.EspActionDeviceSynchronizeInterentDiscoverLocal: Thread[pool-2-thread-1,5,main]##__doActionDeviceSynchronizeInterentDiscoverLocal(userKey=[null]): doCommandDeviceDiscoverLocal()
07-19 11:25:03.495 28466-30339/com.espressif.iot D/com.espressif.iot.base.net.udp.UdpBroadcastUtil: allocPort() entrance
07-19 11:25:03.496 28466-30339/com.espressif.iot D/FlymeTrafficTracking: tag (150) com.espressif.iot pool-2-thread-2 uid 10274
07-19 11:25:03.498 28466-30339/com.espressif.iot D/com.espressif.iot.base.net.udp.UdpBroadcastUtil: Thread[pool-2-thread-2,5,main]##allocPort(hostPort=[4025]) suc
07-19 11:25:03.498 28466-30339/com.espressif.iot D/com.espressif.iot.base.net.udp.UdpBroadcastUtil: Thread[pool-2-thread-2,5,main]##__discoverDevices(bssid=[null]): socket send
07-19 11:25:03.499 28466-30339/com.espressif.iot D/com.espressif.iot.base.net.udp.UdpBroadcastUtil: Thread[pool-2-thread-2,5,main]##__discoverDevices(bssid=[null]): socket receive...
07-19 11:25:04.496 28466-30348/com.espressif.iot D/com.espressif.iot.base.net.udp.UdpBroadcastUtil: allocPort() entrance
07-19 11:25:04.497 28466-30348/com.espressif.iot D/FlymeTrafficTracking: tag (155) com.espressif.iot pool-2-thread-3 uid 10274
07-19 11:25:04.498 28466-30348/com.espressif.iot D/FlymeTrafficTracking: untag(155) com.espressif.iot pool-2-thread-3 uid 10274 1ms
07-19 11:25:04.499 28466-30348/com.espressif.iot E/com.espressif.iot.base.net.udp.UdpBroadcastUtil: Thread[pool-2-thread-3,5,main]##allocPort(hostPort=[4025]) is used
07-19 11:25:04.499 28466-30348/com.espressif.iot D/FlymeTrafficTracking: tag (155) com.espressif.iot pool-2-thread-3 uid 10274
07-19 11:25:04.500 28466-30348/com.espressif.iot D/com.espressif.iot.base.net.udp.UdpBroadcastUtil: Thread[pool-2-thread-3,5,main]##__discoverDevices(bssid=[null]): socket send
07-19 11:25:04.501 28466-30348/com.espressif.iot D/com.espressif.iot.base.net.udp.UdpBroadcastUtil: Thread[pool-2-thread-3,5,main]##__discoverDevices(bssid=[null]): socket receive...
07-19 11:25:05.498 28466-30357/com.espressif.iot D/com.espressif.iot.base.net.udp.UdpBroadcastUtil: allocPort() entrance
07-19 11:25:05.499 28466-30357/com.espressif.iot D/FlymeTrafficTracking: tag (159) com.espressif.iot pool-2-thread-4 uid 10274
07-19 11:25:05.499 28466-30357/com.espressif.iot D/FlymeTrafficTracking: untag(159) com.espressif.iot pool-2-thread-4 uid 10274 0ms
07-19 11:25:05.500 28466-30357/com.espressif.iot E/com.espressif.iot.base.net.udp.UdpBroadcastUtil: Thread[pool-2-thread-4,5,main]##allocPort(hostPort=[4025]) is used
07-19 11:25:05.501 28466-30357/com.espressif.iot D/FlymeTrafficTracking: tag (159) com.espressif.iot pool-2-thread-4 uid 10274
07-19 11:25:05.501 28466-30357/com.espressif.iot D/com.espressif.iot.base.net.udp.UdpBroadcastUtil: Thread[pool-2-thread-4,5,main]##__discoverDevices(bssid=[null]): socket send
07-19 11:25:05.502 28466-30357/com.espressif.iot D/com.espressif.iot.base.net.udp.UdpBroadcastUtil: Thread[pool-2-thread-4,5,main]##__discoverDevices(bssid=[null]): socket receive...
07-19 11:25:06.503 28466-30339/com.espressif.iot D/FlymeTrafficTracking: untag(150) com.espressif.iot pool-2-thread-2 uid 10274 3007ms
07-19 11:25:06.504 28466-30339/com.espressif.iot I/com.espressif.iot.base.net.udp.UdpBroadcastUtil: Thread[pool-2-thread-2,5,main]##__discoverDevices(bssid=[null]): socket is not null, closed in finally
07-19 11:25:06.504 28466-30339/com.espressif.iot D/com.espressif.iot.model.user.EspUser: __addTempStaDeviceList() iotAddressList:[]
07-19 11:25:07.505 28466-30348/com.espressif.iot D/FlymeTrafficTracking: untag(155) com.espressif.iot pool-2-thread-3 uid 10274 3006ms
07-19 11:25:07.506 28466-30348/com.espressif.iot I/com.espressif.iot.base.net.udp.UdpBroadcastUtil: Thread[pool-2-thread-3,5,main]##__discoverDevices(bssid=[null]): socket is not null, closed in finally
07-19 11:25:07.506 28466-30348/com.espressif.iot D/com.espressif.iot.model.user.EspUser: __addTempStaDeviceList() iotAddressList:[]
07-19 11:25:08.507 28466-30357/com.espressif.iot D/FlymeTrafficTracking: untag(159) com.espressif.iot pool-2-thread-4 uid 10274 3006ms
07-19 11:25:08.508 28466-30357/com.espressif.iot I/com.espressif.iot.base.net.udp.UdpBroadcastUtil: Thread[pool-2-thread-4,5,main]##__discoverDevices(bssid=[null]): socket is not null, closed in finally
07-19 11:25:08.508 28466-30357/com.espressif.iot D/com.espressif.iot.model.user.EspUser: __addTempStaDeviceList() iotAddressList:[]
07-19 11:25:08.509 28466-30338/com.espressif.iot D/com.espressif.iot.base.net.rest2.EspMeshDiscoverUtil: discoverIOTMeshDevices(): rootDeviceSet=[]
07-19 11:25:08.509 28466-30338/com.espressif.iot D/com.espressif.iot.base.net.rest2.EspMeshDiscoverUtil: discoverIOTMeshDevices(): allDeviceSet=[]
07-19 11:25:08.510 28466-30338/com.espressif.iot D/com.espressif.iot.command.device.common.EspCommandDeviceDiscoverLocal: Thread[pool-2-thread-1,5,main]##doCommandDeviceDiscoverLocal(): []
07-19 11:25:08.994 28466-29728/com.espressif.iot I/com.espressif.iot.model.device.cache.EspDeviceCache: Thread[AsyncTask #3,5,main]##addSharedDeviceCache(deviceStaDevice=[BSSID:EmptyIOTAddress,InetAddress:null,DeviceTypeEnum:null,mParentBssid:nullmRomVersion:null]): true
07-19 11:25:08.995 28466-29728/com.espressif.iot E/com.espressif.iot.action.device.common.EspActionDeviceSynchronizeInterentDiscoverLocal: add EmptyDevice 1
07-19 11:25:08.995 28466-29728/com.espressif.iot I/com.espressif.iot.model.device.cache.EspDeviceCache: Thread[AsyncTask #3,5,main]##addServerLocalDeviceCache(device=[EspDevice: (mUserId=[0],mBssid=[null],mParentDeviceBssid=[null]mDeviceId=[0],mDeviceName=[null],mDeviceState=[null],mIsMeshDevice=[false],mInetAddress=[null])]): true
07-19 11:25:08.996 28466-29728/com.espressif.iot I/com.espressif.iot.model.device.cache.EspDeviceCache: Thread[AsyncTask #3,5,main]##notifyIUser(NofityType=[PULL_REFRESH])

Crash app in the second starting ESPTouch

Why trying to restart ESPTouch, it fire a crash with log:

E/AndroidRuntime: FATAL EXCEPTION: Thread-6 Process: com.***.***, PID: 15095 java.lang.NullPointerException: Attempt to invoke virtual method 'void java.net.DatagramSocket.receive(java.net.DatagramPacket)' on a null object reference at com.espressif.iot.esptouch.udp.UDPSocketServer.receiveSpecLenBytes(UDPSocketServer.java:113) at com.espressif.iot.esptouch.task

Please help me

EsptouchForAndroid -Jar包

我想问下,如何下载EsptouchForAndroid这个最新的jar包。我现在想需要使用最新的Esptouch.jar。是需要我们自己来进行封装jar包么?

普遍配网慢,Android9上经常收不到配网反馈,Android10配网失败

对同一个硬件,用同一个安卓手机,用官方demo测试,普遍配网比iOS慢,Android9上经常收不到配网反馈,Android10固定配网失败。但是:
换成涂鸦的app进行上述测试,没有问题,配网在5秒以内完成(我们的最快是9秒)。搞不懂涂鸦做了些什么改动,为什么这么快,这么稳定,连Android10都没有问题。

What Code do we need to run on the ESP device???

There is NO description how to use it nor a wiki how are we supposed to deal with that?
It does not recover my devices, so what code do I have to upload on the ESP device???
A link would be much appreciated!

NullPointerException

Null exception in library causing crash.

java.lang.NullPointerException
	at com.espressif.iot.esptouch.udp.UDPSocketServer.receiveSpecLenBytes(UDPSocketServer.java:113)
	at com.espressif.iot.esptouch.task.__EsptouchTask$1.run(__EsptouchTask.java:175)

必现 send gc code 在华为mate30 pro Android10.0,emui 10.0

I/deviceconnsdk: [2020-03-06 15:29:56][INFO] MKIOT tcp_socket.c:106 tcp_bind_port errno: err_no: 98, strerr: Address already in use
V/AudioManager: querySoundEffectsEnabled...
E/stavix_app: [2020-03-06 15:30:02][ERRR] MKIOT :-995236249 [ (AddNewDeviceActivity.java:246)#replaceToCheckDmsResultFragment ] hml replaceFragment
D/Gabe: call returning from cache
D/Gabe: call returning from cache
__EsptouchTask: Welcome Esptouch v0.3.7.2
D/Gabe: call returning from cache
UDPSocketServer: mServerSocket is created, socket read timeout: 120000, port: 18266
__EsptouchTask: execute()
__EsptouchTask: localInetAddress: /192.168.8.206
__EsptouchTask: send gc code
D/__EsptouchTask: __listenAsyn() start
I/__EsptouchTask: expectOneByte: 24
D/UDPSocketServer: receiveSpecLenBytes() entrance: len = 11
I/deviceconnsdk: [2020-03-06 15:30:06][INFO] MKIOT tcp_socket.c:106 tcp_bind_port errno: err_no: 98, strerr: Address already in use
__EsptouchTask: send gc code
__EsptouchTask: send gc code
__EsptouchTask: send gc code
I/deviceconnsdk: [2020-03-06 15:30:26][INFO] MKIOT tcp_socket.c:106 tcp_bind_port errno: err_no: 98, strerr: Address already in use
__EsptouchTask: send gc code
__EsptouchTask: send gc code
I/deviceconnsdk: [2020-03-06 15:30:36][INFO] MKIOT tcp_socket.c:106 tcp_bind_port errno: err_no: 98, strerr: Address already in use
__EsptouchTask: send gc code
I/HwViewRootImpl: removeInvalidNode all the node in jank list is out of time
D/deviceconnsdk: [2020-03-06 15:30:43][DEBG] MKIOT c_mrpc.c:436 0x78c49ee653 120.77.150.206 --> 120.77.150.206:5025 success
D/deviceconnsdk: [2020-03-06 15:30:44][DEBG] MKIOT c_mrpc.c:333 0x7943740800 heart beat comming
__EsptouchTask: send gc code

E/ResMng NATIVE_MSG_FILTER: endActivityTransaction: margin state not match
V/FA: Recording user engagement, ms: 133817
D/HMSAgent: Activity(1351)->Application(473)->ActivityMgr(218)->onActivityPaused
.module.adddevice.scanandcreate.AddNewDeviceActivity@c796ace
V/FA: Using local app measurement service
E/ResMng NATIVE_MSG_FILTER: endActivityTransaction: margin state not match
D/mali_winsys: EGLint new_window_surface(egl_winsys_display *, void *, EGLSurface, EGLConfig, egl_winsys_surface **, EGLBoolean) returns 0x3000
D/OpenGLRenderer: disableOutlineDraw is true
UDPSocketClient: USPSocketClient is interrupt
UDPSocketServer: USPSocketServer is interrupt
UDPSocketServer: mServerSocket is closed
W/System.err: java.net.SocketTimeoutException: Poll timed out
E/ResMng NATIVE_MSG_FILTER: endActivityTransaction: margin state not match
E/stavix_app: [2020-03-06 15:32:02][ERRR] MKIOT :-995236249 [ (DeviceSettingActivity.java:389)#onActivityResult ] requestCode :1079 resultCode:0
V/FA: Activity paused, time: 2374725309
W/System.err: at libcore.io.IoBridge.poll(IoBridge.java:682)
W/System.err: at java.net.PlainDatagramSocketImpl.doRecv(PlainDatagramSocketImpl.java:150)
W/System.err: at java.net.PlainDatagramSocketImpl.receive0(PlainDatagramSocketImpl.java:141)
W/System.err: at java.net.AbstractPlainDatagramSocketImpl.receive(AbstractPlainDatagramSocketImpl.java:164)
W/System.err: at java.net.DatagramSocket.receive(DatagramSocket.java:847)
W/System.err: at com.espressif.iot.esptouch.udp.UDPSocketServer.receiveSpecLenBytes(UDPSocketServer.java:110)
W/System.err: at com.espressif.iot.esptouch.task.__EsptouchTask$1.run(__EsptouchTask.java:165)
I/__EsptouchTask: receive rubbish message, just ignore
D/FA: Event not sent since app measurement is disabled
D/__EsptouchTask: __listenAsyn() finish
D/ZrHung.AppEyeUiProbe: not watching, wait.

请问下配网时发送参数TargetHostName的区别

记得以前旧的版本中在EsptouchTaskParameter中有个参数mTargetHostname=255.255.255.255,现在看到修改成了如下代码:

// target hostname is : 234.1.1.1, 234.2.2.2, 234.3.3.3 to 234.100.100.100
@Override
public String getTargetHostname() {
	int count = __getNextDatagramCount();
	return "234." + count + "." + count + "." + count;
}

想问以下2个问题:

  1. 这个TargetHost为什么修改了?
  2. 我照现在的代码升级了APP,以前旧的芯片配网配不了,必须修改回"255.255.255.255"才可以,而且配网速度极慢,基本在39~45秒之间。请问如何处理此问题?

ssid无法输入

如题,在界面上ssid一直为灰色,焦点在密码输入框里头。

android9.0 app界面SSID显示为<unknown ssid>点击配网后程序崩溃

E/AndroidRuntime: FATAL EXCEPTION: AsyncTask #5 Process: com.shuichan, PID: 1405 java.lang.RuntimeException: An error occurred while executing doInBackground() at android.os.AsyncTask$3.done(AsyncTask.java:355) at java.util.concurrent.FutureTask.finishCompletion(FutureTask.java:383) at java.util.concurrent.FutureTask.setException(FutureTask.java:252) at java.util.concurrent.FutureTask.run(FutureTask.java:271) at android.os.AsyncTask$SerialExecutor$1.run(AsyncTask.java:246) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1167) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641) at java.lang.Thread.run(Thread.java:784) Caused by: java.lang.NullPointerException: SSID can't be empty at com.espressif.iot.esptouch.EsptouchTask.<init>(EsptouchTask.java:62) at com.espressif.iot.esptouch.EsptouchTask.<init>(EsptouchTask.java:57) at com.shuichan.GKCAPP.Activity.WiFiSmartConfigActivity$EsptouchAsyncTask4.doInBackground(WiFiSmartConfigActivity.java:352) at com.shuichan.GKCAPP.Activity.WiFiSmartConfigActivity$EsptouchAsyncTask4.doInBackground(WiFiSmartConfigActivity.java:273) at android.os.AsyncTask$2.call(AsyncTask.java:334) at java.util.concurrent.FutureTask.run(FutureTask.java:266) at android.os.AsyncTask$SerialExecutor$1.run(AsyncTask.java:246)  at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1167)  at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641)  at java.lang.Thread.run(Thread.java:784) 

I find a bug in ByteUtil.java

public static String parseBssid(byte[] bssidBytes, int offset, int count) {
byte[] bytes = new byte[count];
for (int i = 0; i < count; i++) {
bytes[i] = bssidBytes[i + offset];
}
return parseBssid(bytes);
}
here may throw a outOfBound exception:
bytes[i] = bssidBytes[i + offset];// i + offset may generate a big long value, sometimes

ios 可以配网速度很快,android端最近突然经常配不上网

android用了官方最新的demo配置,硬件版本是esp32 V2.7.3 ,发现成功概率几乎为0
设备端无法接收到app发出的wifi名称和密码
以前的版本也是时而可以配上网时而不可配网网
求大神解答,有什么需要优化改进的地方吗?

Working but going into onFailed

I have debugged the app. And here are the observations.

List<IEsptouchResult> result is returning 1 device but firstResult.isSuc() is false.
And after that, the device is operated very well from MQTT Dash app.

What can be wrong here? Can you provide some more info on this?

android下无法配网,但ios却可以

我写了一个esptouch的cordova插件,使用的是0.3.7.0的esptouch
最近发现android上无法正常配网(之前是可以的),但ios端却可以。
测试EsptouchForAndroid releases 1.1.0的apk,也是无法配网。
看起来是esptouch lib问题?有人能告知下原因和如何解决么?

测试了两个手机,均不行:
三星S9 android9.0
锤子Pro2S azndroid 8.1

Error in Xamarin Crossplatform

Hello, Maybe this is not the right place for this issue but I have tried several ways to make this work in xamarin forms for crossplatforms but always get error "missing partial modifier" in the EsptouchTask module.
If anyone knows how should be done please advise.
I am desperate to use this great library.
thanks

Request - please allow a different SSID to be optionally typed

In many cases I would like to set up a device locally and then give it to a customer where a different SSID is present. I do not want this customer to change the SSID or Password themselves. This software only allows the SSID to come from the local connection.

You could make the SSID default to the name as you do now, and if the app user types on top of it, then the new SSID would be sent to the ESP device.

Thank you for your consideration!

怎么控制配网设备的数量

想请问一下,怎么可以每次智能配网只配一个设备啊,比如附近有两个等待智能配网的设备,但是我只需要配一个

BSSID not sent to ESP device

I used the smart config sample code located on esp-idf repo I just added 2 lines to log out BSSID and BSSID_set property and BSSID is not set and the value is always 0.

As I'm using hidden WiFi network the BSSID field is required to connect to it, but as it is always empty on the other end I can't use smart config.

esp8266 smartconfig does not send success notification to AndroidApp

hello
I have a probem, @EspressifApp can you help me,
esp8266 smartconfig success but on android app still run "esptouch is configuring, please wait for...", does not receive anh show ip address of esp8266, then show notification "esptouch fail"

  • ap version: v1.1.0 and esptouch version: v0.3.7.2

  • my code:

`#include <ESP8266WiFi.h>
#include <WiFiUdp.h>

void setup() {
Serial.begin(115200);
/* Set ESP32 to WiFi Station mode /
WiFi.mode(WIFI_STA);
/
start SmartConfig */
WiFi.beginSmartConfig();

/* Wait for SmartConfig packet from mobile */
Serial.println("Waiting for SmartConfig.");
while (!WiFi.smartConfigDone()) {
delay(500);
Serial.print(".");
}
Serial.println("");
Serial.println("SmartConfig done.");

/* Wait for WiFi to connect to AP */
Serial.println("Waiting for WiFi");
while (WiFi.status() != WL_CONNECTED) {
delay(500);
Serial.print(".");
}

Serial.println("WiFi Connected.");
Serial.print("IP Address: ");
Serial.println(WiFi.localIP());
}
void loop() {
}`

  • result show on terminal:

............... SmartConfig done. Waiting for WiFi ......... Mode: STA PHY mode: N Channel: 1 AP id: 0 Status: 5 Auto connect: 1 SSID (11): dlink-guest Passphrase (11): hoiHoaivay1 BSSID set: 1 Server started WiFi Connected. IP Address: 192.168.7.182

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.