-
Notifications
You must be signed in to change notification settings - Fork 7.5k
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
Some example code for Network interface #10905
Comments
|
@me-no-dev Thanks for the explanation! I was reading tah network code because of this code that does not compile since 3.0.x: inline __attribute__((always_inline)) bool
ESP32_VS1053_Stream::_networkIsActive()
{
for (int i = TCPIP_ADAPTER_IF_STA; i < TCPIP_ADAPTER_IF_MAX; i++)
if (tcpip_adapter_is_netif_up((tcpip_adapter_if_t)i))
return true;
return false;
} How would I do this with 3.x.x? For now I changed this to something like |
Yes please use our new API. The reason why your code does not work is that |
Instead of |
After taking another look at arduino-esp32/libraries/Network/src/NetworkManager.cpp Lines 59 to 76 in 2fecc48
Almost exactly what I need! |
Related area
Network
Hardware specification
All esp32
Is your feature request related to a problem?
I would like to see some examples for https://github.com/espressif/arduino-esp32/tree/master/libraries/Network
Describe the solution you'd like
Looking at the code I can figure out some stuff, but a couple of examples would be nice.
Describe alternatives you've considered
No response
Additional context
No response
I have checked existing list of Feature requests and the Contribution Guide
The text was updated successfully, but these errors were encountered: