Skip to content

Conversation

mcspr
Copy link
Collaborator

@mcspr mcspr commented Oct 31, 2022

follow up #8676

  • sprinkle IPAddress(...).isSet() across our loops to avoid polling on a stopped interface. status callback and netif_is_up does not guarantee and we could use the interface!
  • register one status callback per instance, e.g. when begin() is called multiple times (also notice a subtle issue with schedule function when instance is delete'ed)
  • consistent LwipIntf callback signature. no need for rvalue, just pass stdfunc as-is and let the compiler figure it out
mcspr added 2 commits November 1, 2022 02:44
* sprinkle IPAddress(...).isSet() across our loops to avoid polling on a stopped interface. status callback and netif_is_up **does not guarantee and we could use the interface**! * register *one* status callback per instance, e.g. when begin() is called multiple times (also notice a subtle issue with schedule function when instance is delete'ed) * consistent LwipIntf callback signature. no need for rvalue, just pass stdfunc as-is and let the compiler figure it out
@mcspr mcspr merged commit 04494f0 into esp8266:master Nov 1, 2022
@mcspr mcspr deleted the lwip/status-cb branch November 1, 2022 00:01
@mcspr mcspr added this to the 3.1 milestone Nov 2, 2022
hasenradball pushed a commit to hasenradball/Arduino that referenced this pull request Nov 18, 2024
* sprinkle IPAddress(...).isSet() across our loops to avoid polling on a stopped interface. status callback and netif_is_up **does not guarantee and we could use the interface**! * register *one* status callback per instance, e.g. when begin() is called multiple times (also notice a subtle issue with schedule function when instance is delete'ed) * consistent LwipIntf callback signature. no need for rvalue, just pass stdfunc as-is and let the compiler figure it out
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

1 participant