-
11Blynk.App
After connecting to the Dev Board's wifi hotspot, follow below steps to provide the WiFi credentials to the Dev Board. It saves the information on the file system of the board, which remains saved till the time we initiate to change it again.
1. Open Blynk App
2. Open the MENU icon in the upper right corner In the upper right corner
3. Tap on + Add New Device
4. The app will scan the WiFi networks around you and offer to connect to your device. In our example, the device name will be: [name]
5. Once the connection is established, the Blynk app will guide us through the provisioning process. Like entering WiFi name and Password. (One time process for single wifi usage)We can test it using the API -
https://blr1.blynk.cloud/external/api/update?token=<auth_token>&v1=1
The LED will turn ON hopefully. And with v1=0, tit will turn OFF.
Let us now get ahead with using the OTA feature with this.
-
12Blynk.Air
In the Blynk Cloud, open Blynk.Air on the left-side panel > Click New Shipping > Specify Target Selection.
Now, lets make changes the edgent's initial code (Arduino IDE), to view the changes after OTA.
The same must be updated on the Datastream of the Blynk Cloud. Add or change the pin to V2.
In the code find the firmware version and increment it. For example, if it was 0.1.0, change it to 0.1.1. You should do it every time you plan to update your device with new version of code.
#define BLYNK_FIRMWARE_VERSION "0.1.1"
Now we need to export your code as a binary (.bin) file.
First of all, go to Arduino -> File -> Save.
Then, go to Sketch -> Export compiled Binary.The .bin file is now in the same sketch folder with the other files. Upload it on Blynk.Air, and the changes should be visible within the specified 'Preferred Time'.
Now click on Start Shipping
We can see the progress in the Blynk.Air dashboard.
That's all we need to know to get started with the NEW BLYNK 2.0 !!
Discussions
Become a Hackaday.io Member
Create an account to leave a comment. Already have an account? Log In.