diff options
author | Josef Gajdusek <atx@atx.name> | 2015-05-02 21:24:25 +0200 |
---|---|---|
committer | Damien George <damien.p.george@gmail.com> | 2015-05-04 11:48:40 +0100 |
commit | 9e00ac89d5062414b618b3e961acda04ddc8a30d (patch) | |
tree | 86678988787652003b9575bc7300f7fce8d82b1b /esp8266/mpconfigport.h | |
parent | 04ee5983feadc6945e324eb54cd9e7f8c1d6aa8c (diff) | |
download | micropython-9e00ac89d5062414b618b3e961acda04ddc8a30d.tar.gz micropython-9e00ac89d5062414b618b3e961acda04ddc8a30d.zip |
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
Diffstat (limited to 'esp8266/mpconfigport.h')
-rw-r--r-- | esp8266/mpconfigport.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/esp8266/mpconfigport.h b/esp8266/mpconfigport.h index dcd9407f82..cae5398f97 100644 --- a/esp8266/mpconfigport.h +++ b/esp8266/mpconfigport.h @@ -71,7 +71,11 @@ extern const struct _mp_obj_module_t esp_module; #define MP_STATE_PORT MP_STATE_VM #define MICROPY_PORT_ROOT_POINTERS \ - const char *readline_hist[8]; + const char *readline_hist[8]; \ + \ + /* Singleton instance of scan callback, meaning that there can + be only one concurrent AP scan. */ \ + mp_obj_t scan_cb_obj; \ // We need to provide a declaration/definition of alloca() #include <alloca.h> |