Modifications

Sauter à la navigation Sauter à la recherche
400 octets ajoutés ,  1 juin 2016 à 15:00
Ligne 4 : Ligne 4 :     
== Configuration WLAN étape par étape ==
 
== Configuration WLAN étape par étape ==
The WLAN is a system feature of the WiPy, therefore it is always enabled (even while in {{fname|machine.SLEEP}}), except when deepsleep mode is entered.
+
Le système WLAN (WiFi) est une fonctionnalité du WiPy, elle est par conséquent toujours activée, même durant un {{fname|machine.SLEEP}}. Le seul moment où le WLAN est indisponible c'est quand le WiPy est en mode ''deepsleep'' (hibernation).
   −
In order to retrieve the current WLAN instance, do:
+
Si vous avez besoin d'obtenir l'instance WLAN en cours d'utilisation, faites:
    
<syntaxhighlight lang="python">
 
<syntaxhighlight lang="python">
 
>>> from network import WLAN
 
>>> from network import WLAN
>>> wlan = WLAN() # we call the constructor without params
+
>>> wlan = WLAN() # nous appelons le constructeur dans paramètres.
 
</syntaxhighlight>
 
</syntaxhighlight>
   −
You can check the current mode (which is always {{fname|WLAN.AP}} after power up):
+
Vous pouvez vérifier le mode de fonctionnement actuel du WLAN comme suit:
    
<syntaxhighlight lang="python">
 
<syntaxhighlight lang="python">
Ligne 19 : Ligne 19 :  
</syntaxhighlight>
 
</syntaxhighlight>
   −
{{ambox-stop|text=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.
+
Note: Après une mise sous tension, le mode est toujours {{fname|WLAN.AP}} (soit en ''Access Point''/point d'accès)
   −
There are two ways around this:
+
{{ambox-stop|text=Lorsque vous modifiez le mode WLAN en suivant les instructions ci-desssous, votre connexion WLAN avec le WiPy sera interrompue! Cela signifie que vous ne serez pas capable d'exécuter les commandes en mode interactif via une connexion WLAN.
* 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.
+
 
* [[Hack-wipy-repl#Obtenir_une_ligne_de_commande_REPL|duplicate the REPL on UART]], so that you can run commands via USB.
+
Il y a deux solutions pour contourner cette difficultés:
 +
* Vous placez cette configuration dans votre fichier [https://micropython.org/resources/docs/en/latest/wipy/wipy/general.html#wipy-filesystem boot.py] qui est automatiquement exécuté après une réinitialisation/Reset.
 +
* Vous [[Hack-wipy-repl#Obtenir_une_ligne_de_commande_REPL|dupliquez l'invite REPL sur le port série/UART]] de sorte qu'il est possible d'exécuter toutes les commandes via USB.
 
}}
 
}}
      
== Vous connecter sur votre routeur WiFi ==
 
== Vous connecter sur votre routeur WiFi ==
29 917

modifications

Menu de navigation