Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

client: sendto fail, but just ignore it : No route to host #53

Open
nguyenvanquan7826 opened this issue May 6, 2021 · 19 comments
Open

Comments

@nguyenvanquan7826
Copy link

nguyenvanquan7826 commented May 6, 2021

Hi, I download project and run, but it show error and can not found esp.

client: sendto fail, but just ignore it
: No route to host

I build to ios 14.5.1 and xcode 12.5

@lph65724
Copy link

lph65724 commented May 8, 2021

I have run into the same problem on iOS 14.5.

@fanbaoying
Copy link
Collaborator

@nguyenvanquan7826 @lph65724 The problem has been resolved, please refer to the latest commit.

@lph65724
Copy link

@fanbaoying, will pod install be available on this version?

@nguyenvanquan7826
Copy link
Author

@fanbaoying thank, I will try again.

@fanbaoying
Copy link
Collaborator

@lph65724 The ESPTouch pod version has been updated, the latest version is 1.1.0.
https://github.com/EspressifApps/EspressifTouchSDK

@lph65724
Copy link

@fanbaoying, thanks, but the available version via cocoapad is still 1.0.3.

@fanbaoying
Copy link
Collaborator

@lph65724 pod 'EspressifTouchSDK', '1.1.0', Write like this in the Podfile, if you report an error, follow the prompts to solve it.

out-of-date source repos which you can update with pod repo update or with pod install --repo-update.
run pod repo update

@lph65724
Copy link

@fanbaoying after updating to version 1.1.0, I am still getting the following messages, and ESP32 doesn't receive anything. Please see the attached Podfile.lock for my Esptouch version
Podfile.lock.zip

client: sendto fail, but just ignore it
: No route to host

@konewu
Copy link

konewu commented May 20, 2021

same problem

after updating to version 1.1.0, I am still getting the following messages, and ESP32 doesn't receive anything.

client: sendto fail, but just ignore it
: No route to host

Podfile.lock :
PODS:

  • EspressifTouchSDK (1.1.0)
  • IMSLog (1.0.8)
  • IotLinkKit (1.2.1):
    • IMSLog

DEPENDENCIES:

  • EspressifTouchSDK (= 1.1.0)
  • IotLinkKit (= 1.2.1)

@fanbaoying
Copy link
Collaborator

@konewu 你好:

我看你是在自己的项目 BTLock 上集成的,在 GitHub 公版上是否有这个问题?

有没有尝试过不使用 cocoapods 集成,该用手动导入。

@huangzhengguo
Copy link

使用 cocoapods 和 手动导入依旧出现同样错误

@lph65724
Copy link

lph65724 commented Jun 3, 2021

For those who are still having trouble, EspressifTouchSDK 1.1.0 works for me. I manually installed EspressifTouchSDK v1.1.0 and the same error messages still showed at first, but I realized it's the configuration of EspressifTouch in my own code. Adding task.setPackageBroadcast(true) (Swift) solved it, we didn't need to set broadcast in older version. However, I haven't had time to try cocoapods install yet. hope this helps

@huangzhengguo
Copy link

For those who are still having trouble, EspressifTouchSDK 1.1.0 works for me. I manually installed EspressifTouchSDK v1.1.0 and the same error messages still showed at first, but I realized it's the configuration of EspressifTouch in my own code. Adding task.setPackageBroadcast(true) (Swift) solved it, we didn't need to set broadcast in older version. However, I haven't had time to try cocoapods install yet. hope this helps

Thank you, have solved my issue

@konewu
Copy link

konewu commented Jun 7, 2021

@konewu 你好:

我看你是在自己的项目 BTLock 上集成的,在 GitHub 公版上是否有这个问题?

有没有尝试过不使用 cocoapods 集成,该用手动导入。

你好,大神
我采用手动倒入的方式 可以了,解决了问题, 谢谢🙏

@vt-vaio
Copy link

vt-vaio commented Jun 18, 2021

For those who are still having trouble, EspressifTouchSDK 1.1.0 works for me. I manually installed EspressifTouchSDK v1.1.0 and the same error messages still showed at first, but I realized it's the configuration of EspressifTouch in my own code. Adding task.setPackageBroadcast(true) (Swift) solved it, we didn't need to set broadcast in older version. However, I haven't had time to try cocoapods install yet. hope this helps

Thank you, have solved my issue

For Objective - C programmers, [self._esptouchTask setPackageBroadcast:true]; will solve the problem too. Thank you so much for the hints.

@Abhesheksh
Copy link

For those who are still having trouble, EspressifTouchSDK 1.1.0 works for me. I manually installed EspressifTouchSDK v1.1.0 and the same error messages still showed at first, but I realized it's the configuration of EspressifTouch in my own code. Adding task.setPackageBroadcast(true) (Swift) solved it, we didn't need to set broadcast in older version. However, I haven't had time to try cocoapods install yet. hope this helps

Can you help me with how to 'manually install' the library? which files do I need to put in my project and will I also need to create a bridging header?

@lph65724
Copy link

lph65724 commented Nov 8, 2021

For those who are still having trouble, EspressifTouchSDK 1.1.0 works for me. I manually installed EspressifTouchSDK v1.1.0 and the same error messages still showed at first, but I realized it's the configuration of EspressifTouch in my own code. Adding task.setPackageBroadcast(true) (Swift) solved it, we didn't need to set broadcast in older version. However, I haven't had time to try cocoapods install yet. hope this helps

Can you help me with how to 'manually install' the library? which files do I need to put in my project and will I also need to create a bridging header?

Yes, you would need a bridging header if you are using Swift. Basically, you need to add ESPTouch/ESSPTouchV2 to your own project and write your own EspTouchController in Swift

@Abhesheksh
Copy link

For those who are still having trouble, EspressifTouchSDK 1.1.0 works for me. I manually installed EspressifTouchSDK v1.1.0 and the same error messages still showed at first, but I realized it's the configuration of EspressifTouch in my own code. Adding task.setPackageBroadcast(true) (Swift) solved it, we didn't need to set broadcast in older version. However, I haven't had time to try cocoapods install yet. hope this helps

Can you help me with how to 'manually install' the library? which files do I need to put in my project and will I also need to create a bridging header?

Yes, you would need a bridging header if you are using Swift. Basically, you need to add ESPTouch/ESSPTouchV2 to your own project and write your own EspTouchController in Swift

Dumb question, but I'm a newbie, how do I add the ESPTouch/ESPTouchV2 in my project?

@lph65724
Copy link

lph65724 commented Nov 8, 2021

For those who are still having trouble, EspressifTouchSDK 1.1.0 works for me. I manually installed EspressifTouchSDK v1.1.0 and the same error messages still showed at first, but I realized it's the configuration of EspressifTouch in my own code. Adding task.setPackageBroadcast(true) (Swift) solved it, we didn't need to set broadcast in older version. However, I haven't had time to try cocoapods install yet. hope this helps

Can you help me with how to 'manually install' the library? which files do I need to put in my project and will I also need to create a bridging header?

Yes, you would need a bridging header if you are using Swift. Basically, you need to add ESPTouch/ESSPTouchV2 to your own project and write your own EspTouchController in Swift

Dumb question, but I'm a newbie, how do I add the ESPTouch/ESPTouchV2 in my project?

You just simply just create a folder in your project and drag the files from the sample project into your own. When Xcode prompts, make sure your select copy item if needed like shown in https://stackoverflow.com/questions/45096410/how-can-i-add-file-to-project-in-xcode-9.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants