Code Monkey home page Code Monkey logo

cordovaesptouch's People

Contributors

lianghuiyuan avatar xumingxin7398 avatar

Stargazers

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

Watchers

 avatar  avatar

cordovaesptouch's Issues

[IOS]smartconfig 配置慢发现的问题

不好意思,还有一个问题打扰你一下,在IOS端使用你的插件,从开发板端的调试日志看应该是smartconfig配置上了,但是从app的调试信息看好像有问题,有两个问题:1. app的日志不正常;2. 打调试信息“ESPTouchTask __execute() send gc code”时很慢,app此时应该处于等待状态,给用户感觉配置需要比较长的时间(10s+)。
根据我调试信息观察,打出调试信息“ESPTouchTask __execute() send gc code”时smartconfig其实是已经配置成功了.但app给用户的感觉还是在配置状态。此问题我猜在android上也有,因为我在调试android的时候smartconfig成功后到我我能过发出udp广播数据的过程比较长,中间有10s以上等待时间,但因为我android端环境的问题没法调试。
运行环境:iPhone4s IOS8.4
以下是App端调试信息:
(此问题在乐鑫官网貌似也有人遇到了:http://bbs.espressif.com/viewtopic.php?t=1414)

2015-12-03 22:25:36.915 HelloWorld[667:172745] THREAD WARNING: ['WifiWizard'] took '24.667969' ms. Plugin should use a background thread.
2015-12-03 22:25:50.375 HelloWorld[667:172745] ESPTouchTask init
2015-12-03 22:25:50.387 HelloWorld[667:172745] ##########################client init() _sck_fd=18
2015-12-03 22:25:50.390 HelloWorld[667:172745] ##########################server init(): _sck_fd=19
2015-12-03 22:25:50.397 HelloWorld[667:172745] ESP_NetUtil:: 192.168.0.102
2015-12-03 22:25:50.398 HelloWorld[667:172745] ESPTouchTask executeForResult() localInetAddr: 192.168.0.102
2015-12-03 22:25:50.408 HelloWorld[667:172745] ESPTouchTask __execute() send gc code
2015-12-03 22:25:50.408 HelloWorld[667:173008] ESPTouchTask beginBackgroundTask() entrance
2015-12-03 22:25:50.412 HelloWorld[667:173008] ESPTouchTask __listenAsyn() start an asyn listen task, current thread is: <NSThread: 0x1777f010>{number = 7, name = (null)}
2015-12-03 22:25:50.413 HelloWorld[667:173008] ESPTouchTask __listenAsyn() expectOneByte: 30
2015-12-03 22:25:56.422 HelloWorld[667:172745] ESPTouchTask __execute() send gc code
2015-12-03 22:26:02.423 HelloWorld[667:172745] ESPTouchTask __execute() send gc code
2015-12-03 22:26:08.423 HelloWorld[667:172745] ESPTouchTask __execute() send gc code
2015-12-03 22:26:14.455 HelloWorld[667:172745] ESPTouchTask __execute() send gc code
2015-12-03 22:26:20.465 HelloWorld[667:172745] ESPTouchTask __execute() send gc code
2015-12-03 22:26:26.465 HelloWorld[667:172745] ESPTouchTask __execute() send gc code
2015-12-03 22:26:32.468 HelloWorld[667:172745] ESPTouchTask __execute() send gc code
2015-12-03 22:26:35.418 HelloWorld[667:172745] ESPTouchTask __sleep() start
server: receiveOneByte fail
: Resource temporarily unavailable
2015-12-03 22:26:50.417 HelloWorld[667:173008] ESPTouchTask __listenAsyn() receive rubbish message, just ignore
2015-12-03 22:26:50.421 HelloWorld[667:172745] ESPTouchTask __sleep() end, receive signal is NO
2015-12-03 22:26:50.422 HelloWorld[667:172745] ###################server close() fd=19
server: receiveOneByte fail
: Bad file descriptor
2015-12-03 22:26:50.423 HelloWorld[667:173008] ESPTouchTask __listenAsyn() receive rubbish message, just ignore
2015-12-03 22:26:50.424 HelloWorld[667:172745] ESPTouchTask __notify()
2015-12-03 22:26:50.425 HelloWorld[667:173008] ESPTouchTask __notify()
2015-12-03 22:26:50.425 HelloWorld[667:172745] THREAD WARNING: ['esptouchPlugin'] took '60060.113037' ms. Plugin should use a background thread.
2015-12-03 22:26:50.425 HelloWorld[667:173008] ESPTouchTask __listenAsyn() finish
2015-12-03 22:26:50.427 HelloWorld[667:173008] ESPTouchTask endBackgroundTask() entrance
2015-12-03 22:26:50.430 HelloWorld[667:172869] void SendDelegateMessage(NSInvocation *): delegate (webView:decidePolicyForNavigationAction:request:frame:decisionListener:) failed to return after waiting 10 seconds. main run loop mode: kCFRunLoopDefaultMode

添加控件后,IOS编译出错

你好,添加控件后,android上工作的很好,但是在IOS上,添加控件后便编译不通过了,具体错误如下:

ld: warning: ignoring file HelloWorld/Plugins/com.icubespace.cordova_esptouch/Esptouch.framework/Esptouch, file was built for armv7 which is not the architecture being linked (i386): HelloWorld/Plugins/com.icubespace.cordova_esptouch/Esptouch.framework/Esptouch
Undefined symbols for architecture i386:
"OBJC_CLASS$_ESPTouchTask", referenced from:
objc-class-ref in esptouchPlugin.o
"OBJC_CLASS$_ESP_NetUtil", referenced from:
objc-class-ref in esptouchPlugin.o
ld: symbol(s) not found for architecture i386
clang: error: linker command failed with exit code 1 (use -v to see invocation)

** BUILD FAILED **

The following build commands failed:
Ld build/emulator/HelloWorld.app/HelloWorld normal i386
(1 failure)
Error code 65 for command: xcodebuild with args: -xcconfig,/Volumes/creasy/Projects/SVN/cordova/HelloWorld/platforms/ios/cordova/build-debug.xcconfig,-project,HelloWorld.xcodeproj,ARCHS=i386,-target,HelloWorld,-configuration,Debug,-sdk,iphonesimulator,build,VALID_ARCHS=i386,CONFIGURATION_BUILD_DIR=/Volumes/creasy/Projects/SVN/cordova/HelloWorld/platforms/ios/build/emulator,SHARED_PRECOMPS_DIR=/Volumes/creasy/Projects/SVN/cordova/HelloWorld/platforms/ios/build/sharedpch
ERROR building one of the platforms: Error: /Volumes/creasy/Projects/SVN/cordova/HelloWorld/platforms/ios/cordova/build: Command failed with exit code 2
You may not have the required environment or OS to build this project
Error: /Volumes/creasy/Projects/SVN/cordova/HelloWorld/platforms/ios/cordova/build: Command failed with exit code 2
at ChildProcess.whenDone (/Users/lianghuiyuan/nvm/versions/node/v0.12.4/lib/node_modules/cordova/node_modules/cordova-lib/src/cordova/superspawn.js:139:23)
at ChildProcess.emit (events.js:110:17)
at maybeClose (child_process.js:1015:16)
at Process.ChildProcess._handle.onexit (child_process.js:1087:5)

[Android] callback issue

Smartconfig works, but the success/error callback doesn't. Any fix/suggestion?
It seems caused by the thread in esptouchPlugin.java

esptouch.jar是乐鑫官方提供的吗?还是你自己封装的呢?

你好,我最近也在研究esp8266的smartconfig功能,正想写一个Cordova插件时,发现了你写的这个插件,想咨询你一下:你插件里面的esptouch.jar是乐鑫官方提供的吗?还是你自己封装的呢?
因为如果我要把支持IOS做进去的话,IOS是否有类似esptouch.jar的库文件?或者是说我可以借鉴哪份资料做到这个库文件?非常感谢你的分享..。

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.