EspressifApp/EspBlufiForAndroid

Sometimes "receive custom data" is not returning IP address after successful connection

Manasmd opened this issue · 7 comments

I tried it with the official ESP BLUFI App (https://github.com/EspressifApp/EspBlufiForAndroid/releases/download/v1.5.3/EspBluFi-1.5.3-24.apk)

the connection is always successful which is a good thing but sometimes the "Receive custom data" is not returning the IP address.

Is there any way to increase the wait time?
I have already increased my GATT_WRITE_TIMEOUT = 10000L;

but I guess this is only the write time, how can I increase the response wait time?

Screenshot_20221109_181812

@XuXiangJun
Could you please guide me on this?

So you implemented the function of returning the IP address on the device side, right?

Normally, if there is no operation on the APP side, the connection should not be disconnected.
"Receive custom data" is triggered when the device actively sends a notify message.

Hi @XuXiangJun
Thank you so much for your reply.
Yea that's right, it's implemented on the device already. As you can see from the screenshot, it did return the IP address the first time. but the consecutive tests do not return the IP address (this happens like every 1/3 tests)

I noticed after the post configure params complete there seems to be a very short waiting time as the Disconnected is triggered very fast.

Is there a way to keep the window open longer after post configure params complete step?

APP will never close the connection actively unless you press the disconnect button.
Maybe the connection was closed by the device. Could you check the device side?

When the connection was disconnected, the error status is not printed, indicating that this is a normal disconnection.
So I think this is because the device disconnect the connection.

I see, so you mean the APP is not closing the connection and it could be the device that's setting the timeout after "post configure params complete" step?