summaryrefslogtreecommitdiff
path: root/esp8266/qstrdefsport.h
diff options
context:
space:
mode:
authorPaul Sokolovsky <pfalcon@users.sourceforge.net>2016-02-19 19:50:36 +0200
committerPaul Sokolovsky <pfalcon@users.sourceforge.net>2016-03-10 10:41:55 +0700
commita49c16069c8abea06ea3ec88427c522fffaad66d (patch)
tree165365dfba25536c39080824d9e3cf835b3d1f90 /esp8266/qstrdefsport.h
parentd5a12a66082518978e36b20709a0cb975fb9cedc (diff)
esp8266/modnetwork: Introduce interface .config() method.
Allows to set (in case keyword args are given) or query (in case a single "symbolic keyword" (a string, value is the same as keyword)) arbitrary interface paramters (i.e. extensible and adaptable to various hardware). Example usage: ap_if = network.WLAN(1) ap_if.config(essid="MicroPython on Air") print(ap_if.config("essid"))
Diffstat (limited to 'esp8266/qstrdefsport.h')
-rw-r--r--esp8266/qstrdefsport.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/esp8266/qstrdefsport.h b/esp8266/qstrdefsport.h
index 3e134aabb..d07fb14e8 100644
--- a/esp8266/qstrdefsport.h
+++ b/esp8266/qstrdefsport.h
@@ -104,6 +104,7 @@ Q(scan)
Q(status)
Q(isconnected)
Q(mac)
+Q(config)
Q(ifconfig)
Q(STAT_IDLE)
Q(STAT_CONNECTING)
@@ -111,6 +112,8 @@ Q(STAT_WRONG_PASSWORD)
Q(STAT_NO_AP_FOUND)
Q(STAT_CONNECT_FAIL)
Q(STAT_GOT_IP)
+// config keys
+Q(essid)
// Pin class
Q(Pin)