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

No Internet connection when in STATIONAP mode #384

Open
KKoovalsky opened this issue May 20, 2017 · 1 comment
Open

No Internet connection when in STATIONAP mode #384

KKoovalsky opened this issue May 20, 2017 · 1 comment

Comments

@KKoovalsky
Copy link

I'm struggling with sta+ap mode and SNTP. When I upload sketch with ap+sta mode I can't connect to remote NTP server. DNS of server gets resolved (LAN connectivity works fine), but after DNS resolving station calls udp_sendto with with result ERR_RTE (so no route to host). When I upload the same FW but with STATION mode I can connect to NTP server without any problem. Is it bug or feature? I mean, is just Internet connection from station forbidden when AP is working simultaneously?

@ourairquality
Copy link
Contributor

With lwip v2 #389 it is now possible to bind a pcb to an interface and doing so might be a solution, so adding the following to sntp_init gets this working in sta+ap mode:
udp_bind_netif(sntp_pcb, sdk_system_get_netif(0));

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

2 participants