try this code, obviously change the gpio pin number for the esp8266 board you are using
in this line IRsend irsend(2); //an IR emitter led is connected to GPIO pin 2 (2)
#include <ESP8266WiFi.h>
#include <BlynkSimpleEsp8266.h>
#include <IRremoteESP8266.h>
#include <IRsend.h> // Needed if you want to send IR commands.
#include <IRrecv.h> // Needed if you want to receive IR commands.
char auth[] = "your token";
// Your WiFi credentials.
// Set password to "" for open networks.
char ssid[] = "*************";
char pass[] = "*************";
IRsend irsend(2); //an IR emitter led is connected to GPIO pin 2 (2)
void setup()
{
irsend.begin();
Serial.begin(115200, SERIAL_8N1, SERIAL_TX_ONLY);
Blynk.begin(auth, ssid, pass);
}
BLYNK_WRITE(V1){
int onoff = param.asInt();
if(onoff == 1){
irsend.sendSAMSUNG(0XE0E040BF, 32); // 32 bits, no repeat
}
}
void loop() {
Blynk.run();
}