Skip to content

Commit 9e00ac8

Browse files
atxdpgeorge
authored andcommitted
esp8266: Add esp.socket class, with ESP-style socket functionality.
* UDP currently not supported * As there is no way (that I know of) the espconn_regist_connectcb() callback can recognize on which socket has the connection arrived, only one listening function at a time is supported
1 parent 04ee598 commit 9e00ac8

File tree

6 files changed

+535
-16
lines changed

6 files changed

+535
-16
lines changed

esp8266/Makefile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ INC = -I.
1414
INC += -I..
1515
INC += -I../stmhal
1616
INC += -I../lib/mp-readline
17+
INC += -I../lib/netutils
1718
INC += -I$(BUILD)
1819
INC += -I$(ESP_SDK)/include
1920

@@ -49,6 +50,7 @@ SRC_C = \
4950
modpyb.c \
5051
modpybpin.c \
5152
modesp.c \
53+
utils.c \
5254

5355
STM_SRC_C = $(addprefix stmhal/,\
5456
printf.c \
@@ -59,6 +61,7 @@ STM_SRC_C = $(addprefix stmhal/,\
5961
LIB_SRC_C = $(addprefix lib/,\
6062
libc/string0.c \
6163
mp-readline/readline.c \
64+
netutils/netutils.c \
6265
)
6366

6467
SRC_S = \

0 commit comments

Comments
 (0)