FEATHER-WEBREPL-FICHIERS

De MCHobby - Wiki
Sauter à la navigation Sauter à la recherche


MCHobby investit du temps et de l'argent dans la réalisation de traduction et/ou documentation. C'est un travail long et fastidieux réalisé dans l'esprit Open-Source... donc gratuit et librement accessible.
SI vous aimez nos traductions et documentations ALORS aidez nous à en produire plus en achetant vos produits chez MCHobby.

One handy feature of the WebREPL is that it can send and get files from the board's filesystem. Tools like ampy can send and get files over the serial REPL too, but accessing files over the WebREPL can sometimes be more convenient.

Be aware file access using the WebREPL is very simple and doesn't allow uploading to specific locations on the filesystem (everything is uploaded to the root). You'll need to use other tools to put files in different locations.

To use the file features of the WebREPL first connect to the board's WebREPL. Then notice the file operation block on the right of the WebREPL:

{{{2}}}
Crédit: AdaFruit Industries www.adafruit.com

To upload a file click Choose File and select the file. Notice the page will show you the size of the file.

{{{2}}}
Crédit: AdaFruit Industries www.adafruit.com

Click Send to Device to initiate the upload. Once finished the file operation status should show all the data was uploaded to the board.

{{{2}}}
Crédit: AdaFruit Industries www.adafruit.com

To download a file from the filesystem just enter the name or path to the file in the Get a file box. Then click Get from device and the file should be downloaded through the browser to your computer.

{{{2}}}
Crédit: AdaFruit Industries www.adafruit.com


Source: MicroPython Basics: ESP8266 WebREPL
Créé par Tony DiCola pour AdaFruit Industries.

Traduit par Meurisse D. pour MCHobby

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.

Traduit avec l'autorisation d'AdaFruit Industries - Translated with the permission from Adafruit Industries - www.adafruit.com