Template Quick Setup
Last updated
Last updated
A Device Template is a set of configurations inherited by devices of a similar type.
Think about smart home switches. They all perform a similar function and it's safe to assume that they should have the same data model, GPIOs, firmware code, etc. You can create a SmartSwitch template and then create multiple SmartHome switches from it.
While Device Template has a lot of settings, in this tutorial, we focus only on the most important settings to get your devices up and running quickly. By the end of this tutorial, you should have a working device that will:
Send random values to the web and mobile dashboard in given intervals
Receive user input from the web or mobile dashboard UI elements
You would need a development board (e.g. Node MCU, Arduino). A list of supported boards can be found here.
Full documentation on all of the Template settings can be found here.
Before moving further, make sure that you have Developer Mode enabled:
In the Blynk app or in Blynk.Console
Navigate to My Profile in the left menu of the app or the top right corner of Blynk.Console
Check that the Developer Mode switch is set to ON
Currently, only one developer is allowed per Organization in Free and Maker plans to avoid sync issues.
Open the Templates section (Developer Zone -> My Templates) in the left menu and click + New Template button. If you already have a template - click to open it and press Edit button.
Give your new template a name, specify the hardware and connectivity you will be using.
If you can't find your hardware in the list choose Other
A new Template is now created. On the screen below notice Template ID and Firmware Configuration sections. You will need these details later in your sketch.
Open Blynk.Apps
Log In to your account
Switch to Developer Mode
Find a template you just created on the web and tap on it.
Upload this code to your board
Now all that remains is to add your test board using Blynk.Apps, make sure it works as you expect, and integrate your code.