aboutsummaryrefslogtreecommitdiff
path: root/ports/esp8266/modnetwork.c
AgeCommit message (Collapse)Author
2020-04-05all: Use MP_ERROR_TEXT for all error messages.Jim Mussared
2020-03-25esp8266/modnetwork: Add support for wlan.ifconfig('dhcp').Damien George
Fixes issue #5780.
2020-02-28all: Reformat C and Python source code with tools/codeformat.py.Damien George
This is run with uncrustify 0.70.1, and black 19.10b0.
2019-11-05all: Convert nlr_raise(mp_obj_new_exception_msg(x)) to mp_raise_msg(x).Damien George
This helper function was added a while ago and these are the remaining cases to convert, to save a bit of code size.
2019-02-12ports: Convert legacy uppercase macro names to lowercase.Damien George
2018-12-04esp8266/modnetwork: Wait for iface to go down before forcing power mgmt.Damien George
If the STA interface is connected to an AP then it must be fully disconnected and deactivated before forcing the power management on.
2018-12-01esp8266/modnetwork: Automatically do radio sleep if no interface active.Damien George
Reduces current of device by about 55mA when radio is sleeping.
2018-05-17esp8266/modnetwork: Raise ValueError when getting invalid WLAN id.Damien George
Instead of crashing due to out-of-bounds array access. Fixes #3348.
2018-05-17esp8266/modnetwork: Return empty str for hostname if STA is inactive.Damien George
Instead of crashing due to NULL pointer dereference. Fixes issue #3341.
2018-05-01esp8266/modnetwork: Allow to get ESSID of AP that STA is connected to.Lars Kellogg-Stedman
This patch enables iface.config('essid') to work for both AP and STA interfaces.
2018-02-26esp8266/modnetwork: Implement WLAN.status('rssi') for STA interface.Damien George
This will return the RSSI of the AP that the STA is connected to.
2017-12-04esp8266/modnetwork: Make sure to intern string passed to .config("param").Paul Sokolovsky
This is the proper fix for https://github.com/micropython/micropython/issues/3442.
2017-11-16py/objstr: Remove "make_qstr_if_not_already" arg from mp_obj_new_str.Damien George
This patch simplifies the str creation API to favour the common case of creating a str object that is not forced to be interned. To force interning of a new str the new mp_obj_new_str_via_qstr function is added, and should only be used if warranted. Apart from simplifying the mp_obj_new_str function (and making it have the same signature as mp_obj_new_bytes), this patch also reduces code size by a bit (-16 bytes for bare-arm and roughly -40 bytes on the bare-metal archs).
2017-10-09esp8266/modnetwork: Add "bssid" keyword arg to WLAN.connect() method.Damien George
2017-10-04all: Remove inclusion of internal py header files.Damien George
Header files that are considered internal to the py core and should not normally be included directly are: py/nlr.h - internal nlr configuration and declarations py/bc0.h - contains bytecode macro definitions py/runtime0.h - contains basic runtime enums Instead, the top-level header files to include are one of: py/obj.h - includes runtime0.h and defines everything to use the mp_obj_t type py/runtime.h - includes mpstate.h and hence nlr.h, obj.h, runtime0.h, and defines everything to use the general runtime support functions Additional, specific headers (eg py/objlist.h) can be included if needed.
2017-09-06ports: Make new ports/ sub-directory and move all ports there.Damien George
This is to keep the top-level directory clean, to make it clear what is core and what is a port, and to allow the repository to grow with new ports in a sustainable way.