Différences entre versions de « Hack-wipy-wlan »
(Page créée avec « {{WIPY-NAV}} {{traduction}} == Configuration WLAN étape par étape == The WLAN is a system feature of the WiPy, therefore it is always enabled (even while in {{fname|ma... ») |
|||
Ligne 23 : | Ligne 23 : | ||
There are two ways around this: | There are two ways around this: | ||
* put this setup code into your [https://micropython.org/resources/docs/en/latest/wipy/wipy/general.html#wipy-filesystem boot.py] file so that it gets executed automatically after reset. | * put this setup code into your [https://micropython.org/resources/docs/en/latest/wipy/wipy/general.html#wipy-filesystem boot.py] file so that it gets executed automatically after reset. | ||
− | * duplicate the REPL on UART, so that you can run commands via USB. | + | * [[Hack-wipy-repl#Obtenir_une_ligne_de_commande_REPL|duplicate the REPL on UART]], so that you can run commands via USB. |
}} | }} | ||
{{WIPY-TRAILER}} | {{WIPY-TRAILER}} |
Version du 22 mai 2016 à 18:56
En cours de traduction/élaboration. |
Configuration WLAN étape par étape
The WLAN is a system feature of the WiPy, therefore it is always enabled (even while in machine.SLEEP), except when deepsleep mode is entered.
In order to retrieve the current WLAN instance, do:
>>> from network import WLAN
>>> wlan = WLAN() # we call the constructor without params
You can check the current mode (which is always WLAN.AP after power up):
>>> wlan.mode()
When you change the WLAN mode following the instructions below, your WLAN connection to the WiPy will be broken. This means you will not be able to run these commands interactively over the WLAN.
There are two ways around this:
|
Tutoriel WiPy tutorials and examples & general information about WiPy sous copyright de Damien George et contributeurs en ce qui concerne MicroPython et/ou PyCom en ce qui concerne les informations relatives a WiPy et LoPy.
Tutoriel traduit par Meurisse D. pour MCHobby.be
Traduit avec l'autorisation de micropython.org - Translated with the authorisation of micropython.org également avec l'accord de Daniel Compara (créateur de WiPy).
Toute référence, mention ou extrait de cette traduction doit être explicitement accompagné du texte suivant : « Traduction par MCHobby (www.MCHobby.be) - Vente de kit et composants » avec un lien vers la source (donc cette page) et ce quelque soit le média utilisé.
L'utilisation commercial de la traduction (texte) et/ou réalisation, même partielle, pourrait être soumis à redevance. Dans tous les cas de figures, vous devez également obtenir l'accord du(des) détenteur initial des droits. Celui de MC Hobby s'arrêtant au travail de traduction proprement dit.