diff --git a/esp8266/modnetwork.c b/esp8266/modnetwork.c index 40bc459084..0391c992ad 100644 --- a/esp8266/modnetwork.c +++ b/esp8266/modnetwork.c @@ -323,6 +323,11 @@ STATIC const mp_map_elem_t mp_module_network_globals_table[] = { { MP_OBJ_NEW_QSTR(MP_QSTR_phy_mode), (mp_obj_t)&esp_phy_mode_obj }, #if MODNETWORK_INCLUDE_CONSTANTS + { MP_OBJ_NEW_QSTR(MP_QSTR_STA_IF), + MP_OBJ_NEW_SMALL_INT(STATION_IF)}, + { MP_OBJ_NEW_QSTR(MP_QSTR_AP_IF), + MP_OBJ_NEW_SMALL_INT(SOFTAP_IF)}, + { MP_OBJ_NEW_QSTR(MP_QSTR_STAT_IDLE), MP_OBJ_NEW_SMALL_INT(STATION_IDLE)}, { MP_OBJ_NEW_QSTR(MP_QSTR_STAT_CONNECTING), diff --git a/esp8266/qstrdefsport.h b/esp8266/qstrdefsport.h index d07fb14e84..e201e983f9 100644 --- a/esp8266/qstrdefsport.h +++ b/esp8266/qstrdefsport.h @@ -106,6 +106,8 @@ Q(isconnected) Q(mac) Q(config) Q(ifconfig) +Q(STA_IF) +Q(AP_IF) Q(STAT_IDLE) Q(STAT_CONNECTING) Q(STAT_WRONG_PASSWORD)