feat(example): modify for esp8266

This commit is contained in:
Dong Heng
2019-11-18 17:03:25 +08:00
parent 327c8fa613
commit df88161001
4 changed files with 81 additions and 332 deletions

View File

@ -16,13 +16,7 @@ extern "C" {
#include "esp_err.h"
#include "tcpip_adapter.h"
#ifdef CONFIG_EXAMPLE_CONNECT_ETHERNET
#define EXAMPLE_INTERFACE TCPIP_ADAPTER_IF_ETH
#endif
#ifdef CONFIG_EXAMPLE_CONNECT_WIFI
#define EXAMPLE_INTERFACE TCPIP_ADAPTER_IF_STA
#endif
/**
* @brief Configure Wi-Fi or Ethernet, connect, wait for IP