In this section, we will explain to you how to connect your device to Pybytes by flashing Pybytes library manually.
{% hint style="info" %}
From firmware 1.16.x onwards all Pycom devices come with Pybytes library build-in /frozen
folder. That means that you can add your device quickly without the need of flashing Pybytes library manually. Click here for more information.
{% endhint %}
At the last step of the "Add Device" process:
- Click on download "Pybytes library"
You can also download Pybytes library at the device's settings page:
-
Navigate to your device in Pybytes;
-
On your device's page click on settings tab;
-
Click on the button Download at Pybytes library;
{% hint style="info" %} In case you haven't installed Pymakr plugin, follow these instructions. {% endhint %}
-
Connect your device to your computer with USB cable.
-
Extract download Pybytes library and open extracted folder with Atom.
-
Get your device serial port: in Pymakr plugin click on More > get serial ports
-
Paste your device's serial port to
pymakr.conf
file:{ "address": "PASTE_YOUR_SERIAL_PORT_HERE", "username": "micro", "password": "python", "sync_folder": "flash" }
-
Checkout your
flash/pybytes_config.json
file. It will be pre-filled with your information from PybytesLike deviceToken or WiFi credentials. You can change e.g. your WiFy password here.
-
Put your device in safe boot mode.
-
Upload code to your device by clicking on Upload button in Pymakr.
After all Pybytes library files are uploaded to device, device will restart and will connect to Pybytes.
{% hint style="info" %}
Pybytes library is written to /flash
folder and will take precedence over build in firmware libraries in /frozen
folder.
{% endhint %}
Now it's time to display data from your device into Pybytes dashboard.
{% page-ref page="../dashboard.md" %}