Commit 6d243a09 authored by Johny Mattsson's avatar Johny Mattsson
Browse files

idf4: temporarily commenting out broken parts

parent 16ef39e2
#if 0
// FIXME - IDFv3 API no longer available; this needs a major rewrite :(
#include <string.h>
......@@ -305,3 +307,4 @@ LROT_BEGIN(eth)
LROT_END(eth, NULL, 0)
NODEMCU_MODULE(ETH, "eth", eth, NULL);
#endif
......@@ -99,7 +99,7 @@ extern void wifi_sta_init (void);
static int wifi_init (lua_State *L)
{
wifi_ap_init ();
wifi_sta_init ();
// FIXME wifi_sta_init ();
wifi_init_config_t cfg = WIFI_INIT_CONFIG_DEFAULT();
esp_err_t err = esp_wifi_init (&cfg);
......@@ -108,7 +108,7 @@ static int wifi_init (lua_State *L)
}
LROT_EXTERN(wifi_sta);
//LROT_EXTERN(wifi_sta); FIXME
LROT_EXTERN(wifi_ap);
LROT_BEGIN(wifi)
......@@ -118,7 +118,7 @@ LROT_BEGIN(wifi)
LROT_FUNCENTRY( start, wifi_start )
LROT_FUNCENTRY( stop, wifi_stop )
LROT_TABENTRY ( sta, wifi_sta )
// LROT_TABENTRY ( sta, wifi_sta ) FIXME
LROT_TABENTRY ( ap, wifi_ap )
......
#if 0
// FIXME - tcpip_adapter deprecated/removed - need to rewrite for esp_netif
/*
* Copyright 2016 Dius Computing Pty Ltd. All rights reserved.
*
......@@ -470,3 +473,4 @@ LROT_END(wifi_sta, NULL, 0)
NODEMCU_ESP_EVENT(SYSTEM_EVENT_STA_START, do_connect);
NODEMCU_ESP_EVENT(SYSTEM_EVENT_STA_DISCONNECTED, do_connect);
NODEMCU_ESP_EVENT(SYSTEM_EVENT_SCAN_DONE, on_scan_done);
#endif
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment