The following situation is what bothers me :
Though I had already finished the entire program.
However, when the pin is 0, no matter how I switch the button, it’ll be fine. Conversely, if I set the pin to 1 for an amount of time, it’ll just breakdown at the time I press the button.
So, I need to reconnect again and thus rewrite the information of my WiFi.
I was wondering if the problem may results to my wafer, as the serial number was Esp8266-01, or it might breakdown easily because the size of my wafer couldn’t be afforded to run all the entire program.
Below is my forum
Please kindly guide me how to solve the problem.
#define BLYNK_TEMPLATE_ID "TMPLPGJ4GwHr"
#define BLYNK_DEVICE_NAME "Light01"
#define BLYNK_FIRMWARE_VERSION "0.1.0"
#define BLYNK_PRINT Serial
//#define BLYNK_DEBUG
#define APP_DEBUG
// Uncomment your board, or configure a custom board in Settings.h
//#define USE_SPARKFUN_BLYNK_BOARD
//#define USE_NODE_MCU_BOARD
//#define USE_WITTY_CLOUD_BOARD
#include "BlynkEdgent.h"
BLYNK_WRITE(V0)
{
int pinValue = param.asInt();
digitalWrite(0,pinValue);
}
void setup()
{
pinMode(0,OUTPUT);
Serial.begin(115200);
delay(100);
BlynkEdgent.begin();
}
void loop() {
BlynkEdgent.run();
}