Please install our custom micropython firmware by reading the following article before continue here.
How to upgrade cyberfly micropython in esp32
In this article we are going to learn how to install our Cyberfly micropython firmware in esp32 micro controller.
create a new wallet and a device by reading the following
How to use Cyberfly IO platform?
In this tutorial we are going to monitor the temperature using cyberfly io platform
create a new dashboard as follows
give label whatever you want select the device you created
add data for sent to device. here i give pin_no as variable and 2 as a value
GPIO 2 is the onboard LED on esp32
click set and save the dashboard by clicking floating button and save dashboard button.
wait some time to complete the transaction.
Now come to the program part
- open thonny IDE
- connect esp32 micro controller
- create a new file named main.py
replace the key_pair with your device key_pair which is downloaded(file name is device id) when creating the device and replace device_id with your created device id. change ssid with your home wifi name and change your wifi password for connect esp32 to internet.
you can get device id as follows
after modify the program click save button in thonny and select micropython device and run.
now go back to cyberfly IoT dashboard to control LED of esp32.