circuitpython/ports
Glenn Moloney 039f196c56 esp32/modnetwork: Fix isconnected() when using static IP config.
Currently <WLAN>.isconnected() always returns True if a static IP is set,
regardless of the state of the connection.

This patch introduces a new flag 'wifi_sta_connected' which is set in
event_handler() when GOT_IP event is received and reset when DISCONNECTED
event is received (unless re-connect is successful).  isconnected() now
simply returns the status of this flag (for STA_IF).

The pre-existing flag misleadingly named 'wifi_sta_connected" is also
renamed to 'wifi_sta_connect_requested'.

Fixes issue #3837
2018-06-08 13:13:21 +10:00
..
bare-arm ports/{bare-arm,minimal}/Makefile: Only build with core source files. 2018-02-22 12:48:51 +11:00
cc3200 extmod/vfs_fat: Rename FileIO/TextIO types to mp_type_vfs_fat_XXX. 2018-06-06 14:28:23 +10:00
esp32 esp32/modnetwork: Fix isconnected() when using static IP config. 2018-06-08 13:13:21 +10:00
esp8266 ports: Enable descriptors on stm32, esp8266, esp32 ports. 2018-06-08 12:23:08 +10:00
minimal minimal/main: Allow to compile without GC enabled. 2018-05-21 13:13:21 +10:00
pic16bit all: Update Makefiles and others to build with new ports/ dir layout. 2017-09-06 14:09:13 +10:00
qemu-arm qemu-arm/test_main: Include setjmp.h because it's used by gc_collect. 2017-12-20 15:42:06 +11:00
stm32 stm32/mpconfigport.h: Enable DELATTR_SETATTR and BUILTINS_NOTIMPLEMENTED 2018-06-08 12:55:18 +10:00
teensy stm32/pin: In pin AF object, remove union of periph ptr types. 2018-04-11 16:14:58 +10:00
unix unix/moduos_vfs: Add missing uos functions from traditional uos module. 2018-06-06 14:28:23 +10:00
windows ports: Enable ucollections.deque on relevant ports. 2018-02-21 22:55:13 +11:00
zephyr zephyr/Makefile: Add kobj_types_h_target to Z_EXPORTS. 2018-05-21 10:35:16 +10:00