Code Monkey home page Code Monkey logo

Comments (9)

Tingdang avatar Tingdang commented on July 17, 2024 1

抱歉,这段时间没有上gtihub,没有看到。因为修改是在公司的项目中进行的,不方便贴源代码。我只能给出修改思路。对比iPhone,我跟踪Android APP发现两个问题:1.guide code和data code经常没有完整发送完,这个有很大概率会导致发送配网数据失败,修改__execute函数主要是解决这个问题;2.在__listenAsyn函数里,超时收到反馈时,是忽略结果的,这个要改掉,Android手机的硬件差异导致,很多手机上必然会存在接收超时。另外,mWaitUdpReceivingMilliseond和mWaitUdpSendingMillisecond我都调小了,设置那么长时间,没有意义的,能成功很快就成功了,不能成功时间再久也没有用。mTotalRepeatTime增加了。一般来说,两次就够了,安全起见,我设置为3次。

from esptouchforandroid.

Tingdang avatar Tingdang commented on July 17, 2024

今天跟踪了好久,终于找到原因了并解决问题了。请大家检查一下__EsptouchTask文件中的__execute函数执行流程,我是把这个函数重写了后解决问题的。

from esptouchforandroid.

zhubinsheng avatar zhubinsheng commented on July 17, 2024

今天跟踪了好久,终于找到原因了并解决问题了。请大家检查一下__EsptouchTask文件中的__execute函数执行流程,我是把这个函数重写了后解决问题的。

大神 是否可以帖一下代码学习一下 膜拜中

from esptouchforandroid.

zhubinsheng avatar zhubinsheng commented on July 17, 2024

今天跟踪了好久,终于找到原因了并解决问题了。请大家检查一下__EsptouchTask文件中的__execute函数执行流程,我是把这个函数重写了后解决问题的。

__execute的工作流程看了,不知道怎么修改,跪求大神赐教

from esptouchforandroid.

XuXiangJun avatar XuXiangJun commented on July 17, 2024

今天跟踪了好久,终于找到原因了并解决问题了。请大家检查一下__EsptouchTask文件中的__execute函数执行流程,我是把这个函数重写了后解决问题的。

能不能分享下怎么修改的 OTL

from esptouchforandroid.

philong9192 avatar philong9192 commented on July 17, 2024

@Tingdang How to change "__execute" function in "__EsptouchTask" class. I have the same problem on android 9 and 10, android below working fine, please help me.

from esptouchforandroid.

philong9192 avatar philong9192 commented on July 17, 2024

@XuXiangJun Please tell me, how to fix this bug? I can't config esp using android 9 and 10.

from esptouchforandroid.

philong9192 avatar philong9192 commented on July 17, 2024

抱歉,这段时间没有上gtihub,没有看到。因为修改是在公司的项目中进行的,不方便贴源代码。我只能给出修改思路。对比iPhone,我跟踪Android APP发现两个问题:1.guide code和data code经常没有完整发送完,这个有很大概率会导致发送配网数据失败,修改__execute函数主要是解决这个问题;2.在__listenAsyn函数里,超时收到反馈时,是忽略结果的,这个要改掉,Android手机的硬件差异导致,很多手机上必然会存在接收超时。另外,mWaitUdpReceivingMilliseond和mWaitUdpSendingMillisecond我都调小了,设置那么长时间,没有意义的,能成功很快就成功了,不能成功时间再久也没有用。mTotalRepeatTime增加了。一般来说,两次就够了,安全起见,我设置为3次。

hi @Tingdang,

Thank you for your reply to my comment. But I can't resolve my problem, some router can't send data to ESP in Android 9 or 10 but ios and Android below working fine. Can you show me the source code of "__execute" function?

Hope you help me.

from esptouchforandroid.

fuhaodev avatar fuhaodev commented on July 17, 2024

能否提个PR修复一下

from esptouchforandroid.

Related Issues (20)

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.