Esp8266 sp01 rellay

I was using this rellay with the previous version of blynk, (as a simple button) but with the new one i cant fix it . Does anyone have the code ?or some guide?

Thank you.

Which relay?

What board are you using to drive the relay?

Posting your Legacy sketch (correctly formatted with triple backticks) would be a good starting point.

Pete.

Hello,
First of all thank you for your reply, so i can see my device online but i cant get it to work.
The skeech im using is this

// See the Device Info tab, or Template settings
#define BLYNK_TEMPLATE_ID "TMPLAvmeTYmV"
#define BLYNK_DEVICE_NAME "Quickstart Template"
#define BLYNK_AUTH_TOKEN "****"


// Comment this out to disable prints and save space
#define BLYNK_PRINT Serial


#include <ESP8266WiFi.h>
#include <BlynkSimpleEsp8266.h>

char auth[] = BLYNK_AUTH_TOKEN;

// Your WiFi credentials.
// Set password to "" for open networks.
char ssid[] = "**";
char pass[] = "***";

void setup()
{

  // Debug console
  Serial.begin(115200);

  Blynk.begin(auth, ssid, pass);
  // You can also specify server:
  //Blynk.begin(auth, ssid, pass, "blynk.cloud", 80);
  //Blynk.begin(auth, ssid, pass, IPAddress(192,168,1,100), 8080);
}

void loop()
{
  Blynk.run();
  // You can inject your own code or combine it with other sketches.
  // Check other examples on how to communicate with Blynk. Remember
  // to avoid delay() function!
}```

and the rellay and the rellay is this one rellay

@Bandicoot929 Please edit your post, using the pencil icon at the bottom, and add triple backticks at the beginning and end of your code so that it displays correctly.
Triple backticks look like this:
```

Copy and paste these if you can’t find the correct symbol on your keyboard.

Pete.

Sorry, didnt know that. I just did it.

Pete.

i didnt know what triple backticks was :slight_smile:

I guess you’re using a digital pin datastream. If so, I’d suggest using virtual pins instead.
https://docs.blynk.io/en/blynk.edgent-firmware-api/virtual-pins

And you didn’t post your working legacy sketch. We’re still waiting.

Pete.

Pete:

Despite my diligent attempts at migration of my/our well-conditioned Arduino code and the NEW “features” of Blynk Iot, I have given up. Finding that developing the appropriate “templates” caused the device to “crash” and become un-recoverable by reverting the template configurations I DELETED them to begin again where they worked for an input or two. Now I find that I have used all of my FREE privileges trying to get legacy Arduino sketches to function.

With greatest respect for your extraordinary support capability and efforts, I’m DONE with BLYNK !!!

Recommend all similarly frustrated users to switch to TASMOTA with all IoT and user features to suit most of us non-software professionals. In only a few hours I had all my devices reconfigured and operating with Alexa without a four-week study of Arduino code to accommodate for the foolishness of BLYNK.

Most sincere regards.

LA