Updated Hardware API (markdown)

master
Daniel Campora 2015-09-26 11:07:24 +02:00
rodzic 4982678436
commit 1343b5a8e0
1 zmienionych plików z 1 dodań i 1 usunięć

@ -351,7 +351,7 @@ Methods:
- `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.ifconfig(id=0, [(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'`.
- `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: