Skip to content

Instantly share code, notes, and snippets.

@CelliesProjects
Created April 18, 2021 14:41
Show Gist options
  • Save CelliesProjects/04538cf4616e4b195b12dd20363a511b to your computer and use it in GitHub Desktop.
Save CelliesProjects/04538cf4616e4b195b12dd20363a511b to your computer and use it in GitHub Desktop.

Revisions

  1. CelliesProjects created this gist Apr 18, 2021.
    7 changes: 7 additions & 0 deletions esp32_netif_isup.ino
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,7 @@
    #include <tcpip_adapter.h>

    static bool netif_isup() {
    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;
    }