-
Notifications
You must be signed in to change notification settings - Fork 42
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
Uses outdated lwIP API? #17
Comments
In MicroPython we use the err_t mdns_resp_add_netif(struct netif *netif, const char *hostname, u32_t dns_ttl); So it looks correct for that version. I guess the point is, we should update to |
Well that's kinda awkward, as pico-sdk uses Does the code in Looks like lwIP's Oh! Looks like STABLE-2_1_3_RELEASE also has the function-signature EDIT: Ah, and STABLE-2_1_x (dated 10 Nov 2021) also uses the three-arg form of |
Yes it probably does. This driver can support various lwIP versions if needed, and to do that would use But right now I think everything works with |
Yes, I believe so (the other people I pinged will know more about this than me). But I guess raspberrypi/pico-examples#247 implies that things might break if different preprocessor-definitions are used? 🤷 |
See micropython/micropython#8960 for update of MicroPython to 2.1.3. |
Is it really worth our time to get the driver to work with an old version of lwip? It seems to work with 2.1.2, 2.1.3 and master? |
Yeah, apologies for any confusion my misunderstanding caused - all the I'm happy for this to be closed if everyone is happy with the current situation? |
Actually, I can repro it now on the sdk. |
The host name for mDns wasn't using CYW43_HOST_NAME. The mdns_resp_add_netif changed after lwip version 2.1.2. Avoid calling mdns_resp_remove_netif if it's not been added. Call mdns_resp_announce when STA connected. Fixes georgerobotics#16 and georgerobotics#17
The lwip mDNS API has changed which can cause problems building it. The suggestion is that this code should not be in the driver anyway, so remove it. Fixes georgerobotics#17
Related to raspberrypi/pico-examples#247
Whilst I wasn't able to reproduce the originally-reported problem in that issue, curiosity prompted me to do a bit of digging anyway... 😉
https://github.com/georgerobotics/cyw43-driver/blob/main/src/cyw43_lwip.c#L182 does
however the third parameter to
mdns_resp_add_netif
was removed from lwIP on 13th November 2018. Looking at the dates of the lwIP release-tags, I guess this means that there was a backwards-incompatible API change between the 2.1.1 and 2.1.2 versions of lwIP 😕 And annoyingly, even though https://savannah.nongnu.org/projects/lwip mentions the 2.1.3 release of lwIP (which agrees with GitHub), http://www.nongnu.org/lwip/ shows the Doxygen for the 2.1.0 release, which uses the old API 🤦♂️The text was updated successfully, but these errors were encountered: