summaryrefslogtreecommitdiffstatshomepage
path: root/esp8266/modesp.c
Commit message (Collapse)AuthorAge
* esp8266: Add a bunch of miscellaneous methodsJosef Gajdusek2015-05-28
|
* esp8266: Add .onsent callback supportJosef Gajdusek2015-05-06
| | | | | The function passed to socket.onsent() gets called after data is succesfully sent by the socket.
* esp8266: Initialize socket->connlist to NULLJosef Gajdusek2015-05-06
| | | | This was causing crashes in .onconnect()
* esp8266: Fix endian of address returned by esp.getaddrinfo()Josef Gajdusek2015-05-05
|
* esp8266: Add esp.socket class, with ESP-style socket functionality.Josef Gajdusek2015-05-04
| | | | | | | * 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
* esp8266: Export station status() constantsJosef Gajdusek2015-05-03
|
* py: Overhaul and simplify printf/pfenv mechanism.Damien George2015-04-16
| | | | | | | | | | | | | | | | | | | | | | Previous to this patch the printing mechanism was a bit of a tangled mess. This patch attempts to consolidate printing into one interface. All (non-debug) printing now uses the mp_print* family of functions, mainly mp_printf. All these functions take an mp_print_t structure as their first argument, and this structure defines the printing backend through the "print_strn" function of said structure. Printing from the uPy core can reach the platform-defined print code via two paths: either through mp_sys_stdout_obj (defined pert port) in conjunction with mp_stream_write; or through the mp_plat_print structure which uses the MP_PLAT_PRINT_STRN macro to define how string are printed on the platform. The former is only used when MICROPY_PY_IO is defined. With this new scheme printing is generally more efficient (less layers to go through, less arguments to pass), and, given an mp_print_t* structure, one can call mp_print_str for efficiency instead of mp_printf("%s", ...). Code size is also reduced by around 200 bytes on Thumb2 archs.
* esp8266: modesp: Add status() function for connection status.Paul Sokolovsky2015-02-05
|
* esp8266: modesp: Add disconnect() function to disconnect from WiFi AP.Paul Sokolovsky2015-02-03
|
* esp8266: modesp: Add connect() function to connect to WiFi AP.Paul Sokolovsky2015-02-01
|
* esp8266: Handle exceptions in callback.Paul Sokolovsky2015-01-25
|
* esp8266: Add "esp" module with esp8266-specific "cooperative" networking.Paul Sokolovsky2015-01-25
So far implements .scan(lambda x: print(x)) function to scan for WiFi access points.