Smartphone Honor 7X, Android 9
I want to try to blink the builtin led on nodeMCUv2
From the Arduino IDE I uploaded the code.
When I’m connecting from Dashboard
I can indeed turn on or off the led.
From my Smartphone, I keep having “Can´t connect with device”
Hardware compatibility issue with my Honor 7x?
Thanks
//Include the library files
#define BLYNK_PRINT Serial
#include <ESP8266WiFi.h>
#include <BlynkSimpleEsp8266.h>
#include "gWifiNamePwd.h"
#define BLYNK_TEMPLATE_ID "my credidentials"
#define BLYNK_DEVICE_NAME "my credidentials"
#define BLYNK_AUTH_TOKEN "my credidentials"
const char auth[] = BLYNK_AUTH_TOKEN;
//Get the button value
BLYNK_WRITE(V0) {
int pinValue = param.asInt();
Serial.println(pinValue);
digitalWrite(D4, pinValue);
}
void setup() {
Serial.begin(115200);
Serial.print("Starting");
//Set the LED pin as an output pin
pinMode(D4, OUTPUT);
//Initialize the Blynk library
Blynk.begin(auth, SSID, ssidPWD, "blynk.cloud", 80);
}
void loop() {
//Run the Blynk library
Blynk.run();
}