Skip to content

Commit fb2f317

Browse files
committed
fix esp8266 missed network changes
1 parent 5742482 commit fb2f317

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

libs/network/network.c

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,9 @@
2020
#if defined(USE_WIZNET)
2121
#include "network_wiznet.h"
2222
#endif
23+
#if defined(USE_ESP8266_BOARD)
24+
#include "network_esp8266.h"
25+
#endif
2326
#if defined(LINUX)
2427
#include "network_linux.h"
2528
#endif
@@ -167,6 +170,9 @@ bool networkGetFromVar(JsNetwork *net) {
167170
#if defined(USE_WIZNET)
168171
case JSNETWORKTYPE_W5500 : netSetCallbacks_wiznet(net); break;
169172
#endif
173+
#if defined(USE_ESP8266_BOARD)
174+
case JSNETWORKTYPE_ESP8266_BOARD : netSetCallbacks_esp8266_board(net); break;
175+
#endif
170176
#if defined(LINUX)
171177
case JSNETWORKTYPE_SOCKET : netSetCallbacks_linux(net); break;
172178
#endif

libs/network/network.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ typedef enum {
3636
JSNETWORKTYPE_CC3000, ///< TI CC3000 support
3737
JSNETWORKTYPE_W5500, ///< WIZnet W5500 support
3838
JSNETWORKTYPE_JS, ///< JavaScript network type
39+
JSNETWORKTYPE_ESP8266_BOARD, ///< Espressif ESP8266 board support
3940
} JsNetworkType;
4041

4142
typedef struct {

0 commit comments

Comments
 (0)