If you wnat to keep the same functionality (Arduino OTA as opposed to Blynk.Air) then you don’t need to change much.
Create a template and virtual datastreams in the Blynk IoT web console. When you create the datastreams that are being used for LEDs then set the m8n/max values to 0-255 (or use 0-1 and change your sketch where it writes 255 to the LED widget.
I don’t think you should be including this line anyway…
Once you’ve done that then you create a device from your template and that will give you three lines of code that MUST be pasted at tge very top of your sketch.
Bl6nk notify…
Isn’t used anymore. Instead you need to create an event in your template screen and add a notification to that, then use Blynk.logEvent
Your existing sketch looks messy in this respect, sending multiple notifications for the same fire event, although it’s difficult to tell as you haven’t used meaningful variable names or added in-code comments to explain the logic, and I can’t be bothered to unpick it.
Either way, you should read this…
Once you’ve done that then you’ll need to install the latest Blynk library and re-compile your code.
You’ll need to create a new mobile dashboard, and also create a web dashboard if you want to use that functionality too.
This is what I got so far. I have compiled & uploaded to my device.
My chip is showing online in the web console. the lcd & chirping led status is properly working on the app.
But i am not getting any mobile notification like i did previously.I have replaced the blynk notify with Blynk.logEvent
Also I noticed when i first open the app everytime, the lcd is always blank, once its triggers it show any string there. until I exit out of the application & restart the application at which is back to been blank.
Your earlier screenshot shows the event code as “fire_detected_in_the_home”
Have you bow edited the event, as well as your sketch, to make the event code “SmokeSensed” ?
If so, then posting an updated screenshot of the event screen would help.
Yes i did change the event name to make it simple.
Also the lcd widget is currently in simple mode. In simple it doesnt have any issues where the lcd shows blank every time app is restarted but it shows p 0 0 for some reason
If i am on advanced it display nothing until something is triggered. If the screen were to time out or app closed and re open the app OR phone screen unlocked to go to app, the lcd would be blank again until the sensor is triggered to display lol
In simple mode, your LCD widget performs as a normal widget, so there’s no need to use the advanced mode commands to send data to the LCD widget. You can simply use
Blynk.virtualWrite(V3, "custom message");
The most likely explanation for this is that you are using the advanced mode command with simple mode.
The Blynk IoT platform has not yet integrated data retention for the Terminal and LCD widgets.
Your screenshots are showing part of the options screens, but not whether you’ve selected the “send event to notifications tab” and “send event to timeline” options. Neither have you included the timeline screen.
Have you read the Notifications and flag variables link I provided regarding this?
Yes I read the FAQ you send, thats how I got to know about sent event to notification tab as well as send event to timeline needs to active for those features. I see the alert showing up on the timeline, but like legacy blynk it doesnt send push notification on android while the phone is sleep or phone screen is on or while blynk IOT is already open.
Update*************
Just Realized I had the deliver push notification as alerts option active so disabled that push notificaiton are showing up on Android.
Thanks for your help. I just got to figure out now why Arudino OTA is not working.