@shama Please do not create 2nd accounts and use it to post the same issue on multiple topics… I have removed all of them and the unnecessary 2nd account.
As for your new issue, I moved tit into a new topic.
First you have not formatted your code as required… Please repost your code properly.
Secondly, if you would search and read other API related topics and look at the examples on the API document page you might see that you are using quotes around your values that are not needed.
So we should not use D2,D3 pins? what are PWM pins mean? actually i used 4 pins D3,D5,D6,D7 in blynk app and connected to nodemcu but when i try to execute same pins in browser it is not working
@shama I have moved your post above from another 2 year old topic… assid from being an old topic, it was irrelevant to your issue, which is basically not reading other posts about how to use proper API syntax
Do not use Dx silkscreened labeling for pins, use the proper GPIO designation for a pin.
#define BLYNK_PRINT Serial // Comment this out to disable prints and save space
#include <ESP8266WiFi.h>
#include <BlynkSimpleEsp8266.h>
// You should get Auth Token in the Blynk App.
// Go to the Project Settings (nut icon).
char auth[] ="80d3631030d247f0b4250eecc2410849";
IPAddress ip(192,168,1,39);
IPAddress gateway(192,168,1,1);
IPAddress subnet(255,255,255,0);
// Your WiFi credentials.
// Set password to "" for open networks.
char ssid[] = "S.R.Electronics Lab";
char pass[] = "abcdef0123456";
void setup()
{
WiFi.config(ip,gateway,subnet);
WiFi.begin(ssid,pass);
Serial.begin(9600);
Blynk.begin(auth, ssid, pass, IPAddress(192,168,1,9),8080);
}
void loop()
{
Blynk.run();
}
Once you fix the quotes, then yes… sorta… but what you are actually doing is setting pin 0 (D3) LOW or OFF (well OK, the LED may be wired to trigger ON when that pin is LOW)
EDIT - OK, I am also confused… I was sure I had my Mega working with just using pin 6… but now I need to use D6 (different than ESP silkscreening)… and now it is not responding with PWM… so I guess I just don’t know for sure
Of course I also normally never use direct pin manipulation anyhow… instead I use vPins… so all I can say is use Trial and error, then go with whatever works
I really don’t use the API myself… only when assisting others do I dig into how it works on their behalf… but I think I need to use it more myself so I have an even better understanding.
Well, just keep trying different values and syntax… that’s all I was doing on your behalf And may not be correct on some of my suggested syntax as I was not using an ESP in those tests.
But I have other things to focus on than learning API syntax right now, so I have to leave you to figure this out on your own for now.
Actually i connected my nodemcu boards to four bulbs of digital pins of D3,D5,D6,D7 and i want to update it by using 0 and 1 values for ON and OFF .above line i executed by placing 2 because D4 value of GPIO is 2 na so i placed it even it not executing