Internet of Things (IoT) | Training Course ▸ Workflow
Workflow
3. Fetching data from the Lopy with Filezilla
Pycom typical workflow
A typical workflow is the following:
- Open Atom
- Add a project folder:
top menu ► File ► Add Project Folder... - Plug your device into your USB port
- Update Pymakr settings (connection via USB or WiFi)
- Connect
- Write your code
- Run your code for debugging
- Sync your code once done
These steps are illustrated in the following video:
https://www.youtube.com/watch?v=L1CmWsZlCeU
Instead you might want to connect to your device via WiFi. To do so:
- Remove the serial port name in Pymakr settings
Device addressfield and just leave it blank (the default IP address is ok) - Look up Pycom device's WiFi in WiFi access points available
- and reconnect.
These three steps are illustrated in the following video:
https://www.youtube.com/watch?v=w3rnU3dZJ9w&feature=youtu.be
Resetting
They are different ways to reset your device:
- Soft reset
ctrl+D in Pymarkr plugin console.
- Formating device's
/flashfolder
import os
os.mkfs('/flash')then reboot.
Fetching data from the Lopy with Filezilla
Warning: Your device's WiFi should be in Acces Point mode.
To establish a connection with your device:
- open FileZilla
- connect to device's WiFi
- click to
File ▸ Site Manager - reproduce the settings below
- and connect (password is:
python)
These steps are illustrated in the following video:
https://www.youtube.com/watch?v=8bHJWAezaB0&feature=youtu.be
Syncing a subfolder
This is important to note that only one folder/project should be open in Atom when using the Pymakr package. This said, this main folder can contain subfloders. Let's consider the example below where we open the button project/folder containing various subfolders.
If you want to sync. only one folder to the Pycom device. You must:
- specify in Settings
Sync Folderfield your subfolder of interest - click
Reconnect(IMPORTANT!)
Then you will be in a position to sync exclusively the subfolder of interest. The video link below illustrate the process:
https://www.youtube.com/watch?v=Pa4-0Rf62ps&feature=youtu.be
