From df1f6783f2b21ba3d507a733385f2b0c02f5a0ae Mon Sep 17 00:00:00 2001 From: Paul Sokolovsky Date: Wed, 23 Mar 2016 16:25:55 +0200 Subject: [PATCH] esp8266: Add "socket" and "usocket" aliases for lwip module. --- esp8266/mpconfigport.h | 2 ++ esp8266/qstrdefsport.h | 1 + 2 files changed, 3 insertions(+) diff --git a/esp8266/mpconfigport.h b/esp8266/mpconfigport.h index 2197bd06f4..55d781c46b 100644 --- a/esp8266/mpconfigport.h +++ b/esp8266/mpconfigport.h @@ -98,6 +98,8 @@ extern const struct _mp_obj_module_t mp_module_machine; { MP_OBJ_NEW_QSTR(MP_QSTR_pyb), (mp_obj_t)&pyb_module }, \ { MP_OBJ_NEW_QSTR(MP_QSTR_esp), (mp_obj_t)&esp_module }, \ { MP_OBJ_NEW_QSTR(MP_QSTR_lwip), (mp_obj_t)&mp_module_lwip }, \ + { MP_OBJ_NEW_QSTR(MP_QSTR_socket), (mp_obj_t)&mp_module_lwip }, \ + { MP_OBJ_NEW_QSTR(MP_QSTR_usocket), (mp_obj_t)&mp_module_lwip }, \ { MP_OBJ_NEW_QSTR(MP_QSTR_network), (mp_obj_t)&network_module }, \ { MP_OBJ_NEW_QSTR(MP_QSTR_utime), (mp_obj_t)&utime_module }, \ { MP_OBJ_NEW_QSTR(MP_QSTR_uos), (mp_obj_t)&uos_module }, \ diff --git a/esp8266/qstrdefsport.h b/esp8266/qstrdefsport.h index baddfe350e..569181222b 100644 --- a/esp8266/qstrdefsport.h +++ b/esp8266/qstrdefsport.h @@ -54,6 +54,7 @@ Q(machine) Q(esp) Q(socket) +Q(usocket) Q(connect) Q(disconnect) Q(wifi_mode)