From daac4aec9cf178087a1cfecec7177d75013f841e Mon Sep 17 00:00:00 2001 From: Daniel Campora Date: Sat, 26 Sep 2015 12:34:46 +0200 Subject: [PATCH] Updated Hardware API (markdown) --- Hardware-API.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Hardware-API.md b/Hardware-API.md index 86ae9fb..270d5d3 100644 --- a/Hardware-API.md +++ b/Hardware-API.md @@ -350,7 +350,7 @@ Methods: - `wlan.mac([mac])` get or set the MAC address. The MAC address is a `bytes` object of length 6. - `wlan.connect(ssid, *, auth=WLAN.OPEN, key=None, timeout=None)` Connect to the network specified by the SSID using the given authentication and keys. - `wlan.disconnect()` Closes the current connection. NOHEAP -- `wlan.isconnected()` returns `True` if connected and IP address has been assigned. +- `wlan.isconnected()` returns `True` if connected and IP address has been assigned. NOHEAP - `wlan.ifconfig(id=0, config=[(ip, netmask, gateway, dns) or 'dhcp'])` get or set the IP configuration. The `id` is the interface id, and defaults to zero. In the case of `AP+STA` mode, the NIC effectively has 2 interfaces that can be configured independently using `id=0` for the AP and `id=1` for the STA. Alternatively, a port can choose to use string names for the `id`, e.g. `id='STA'` and `id='AP'`. Constants: