-
Notifications
You must be signed in to change notification settings - Fork 200
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
http server only reachable via ap not sta mode #168
Comments
can you please specify what version of svc are you using. by routes not invoked you mean through the hostname? what are you trying to use ? hostname.local ? did you try it with the ip address directly ? what type of dns server are you using? |
i tried via direct ip address which my router provided (192.168.178.27 in my case), but looking at |
can you try waiting a bit when init wifi. most of the time you dont directly get ip from your dhcp. please have an look at this example code https://github.com/ivmarkov/rust-esp32-std-demo/blob/main/src/main.rs#L1265 how to wait on wifi init |
log (in mixed mode(ap first then adding sta))
|
Thanks! sadly |
please look at the provided example. 0.43 include wait_with_timeout. but it is reworked and uses an new WifiWait struct now. its used in the example but otherwise look here : https://github.com/esp-rs/esp-idf-svc/blob/master/src/wifi.rs#L1196 |
i didnt test the mixed mode myself but i am sure that pure station and pure ap mode works. please try to confirm first that pure sta mode works or not for you. after that we can look in mixed mode |
Alright, thanks for providing the example! |
ok the example uses mixed mode as well, and modifiing my code to use the WifiWait and EspWifiWait still didnt do the trick, sadly ( but i'll run the given example as-is and see when it breaks |
okay the example works fine (after incorperating ivmarkov/rust-esp32-std-demo#117 and increasing flash size) i'd close this for now as its probably my fault somewhere and reopen if it aint ;) |
in mixed (
Configuration::Mixed(c, ap)
) or STA mode the http routes wont get invoked when reaching via the external network.in AP mode or in mixed mode via the internal/hosted network everything works fine..
the station also gets displayed in my router as "espressif"
using
esp_idf_svc::wifi::EspWifi
andesp_idf_svc::http::server::EspHttpServer
, both with default configThe text was updated successfully, but these errors were encountered: