Please find below the example used from Blynk Arduino library.
- With the basic example code and creating applets i was able to turn on and off led by voice command.
- i added some lines to work with Slider widget in Blynk app, it worked as desired.
I wanted to control the brightness by voice command on google assistant which is where i am getting stuck. I am not much into coding so not sure where i am wrong. Is it the program code or the applet parameters…please assist.
#define BLYNK_PRINT Serial
// You should get Auth Token in the Blynk App.
// Go to the Project Settings (nut icon).
char auth = "FMC8WkLghPgIxw0RTHpImlTrXCi7aIgN";
// Your WiFi credentials.
// Set password to "" for open networks.
char ssid = "MAURYA";
char pass = "8767510562@aalok";
int led = 2;
pinValue = param.asInt(); // assigning incoming value from pin V1 to a variable
// process received value
// Debug console
ledcSetup(0, 12000 ,8);
// attach the channel to the GPIO to be controlled
Blynk.begin(auth, ssid, pass);