Esp8266 with 1 relay mcu STC 15F104W work fine the module 4 relay mcu NT6E003 d´ont work

Hi

I tested this code with 1 module of 1 relay and it works perfectly mcu STC15F104W

#define BLYNK_PRINT Serial

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

// You must obtain the authentication token from the Blynk application.
// Go to the project settings (nut icon).
char auth [] = "xxxxxxxxxxxxxxxxxxxxxxxxxxxx";

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

byte relON [] = {0xA0, 0x01, 0x01, 0xA2}; // Hex command to send to serial for
byte relOFF [] = {0xA0, 0x01, 0x00, 0xA1}; // Hexadecimal command to send to serial for closing retransmission


void setup ()
{
// Debug console
Serial.begin (115200);


Blynk.begin (auth, ssid, pass);
}

// Relay on off
BLYNK_WRITE (V0) {
int button = param.asInt (); // read button
if (button == 1) {
Serial.write (relON, sizeof (relON));
}
else {
Serial.write (relOFF, sizeof (relOFF));
}
}

void loop ()
{
Blynk.run ();
}

after that I tried to use with the same code, changing to 4 relay, in module of lctech 4 relay with mcu nuvotoc NT6E003 and dónt work .

i tried the module with original firmware AT and work fine with app easyTCP in android .

can someone help me, because with the easyTPC app it only works locally and I wanted to use Blynk to access it via the internet

@VictorMarques 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:
```

Pete.

Hello everyone
Problem solved .
After many attempts, I found that right after the

serial.begin (115200)
Serial.write (relOFF1, sizeof (relOFF1));

I put an instruction to place the open relay
everything was working

Below is the code I used with the changes for the operation of 4 relays with the LCTech board, working in the prefecture, in case anyone needs it

#define BLYNK_PRINT Serial
#include <ESP8266WiFi.h>
#include <BlynkSimpleEsp8266.h>

char auth [] = "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx";
char ssid [] = "xxxxxxxxxxxxxxxxxxxxxxxxxxxxx";
char pass [] = "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx";

byte relON1 [] = {0xA0, 0x01, 0x01, 0xA2}; 
byte relOFF1 [] = {0xA0, 0x01, 0x00, 0xA1}; 
byte relON2 [] = {0xA0, 0x02, 0x01, 0xA3}; 
byte relOFF2 [] = {0xA0, 0x02, 0x00, 0xA2}; 
byte relON3 [] = {0xA0, 0x03, 0x01, 0xA4}; 
byte relOFF3 [] = {0xA0, 0x03, 0x00, 0xA3};
byte relON4 [] = {0xA0, 0x04, 0x01, 0xA5};
byte relOFF4 [] = {0xA0, 0x04, 0x00, 0xA4}; 

void setup ()
{
Serial.begin (115200);
Serial.write (relOFF1, sizeof (relOFF1));
Serial.write (relOFF2, sizeof (relOFF2));
Serial.write (relOFF3, sizeof (relOFF3));
Serial.write (relOFF4, sizeof (relOFF4));

Blynk.begin (auth, ssid, pass);
}

BLYNK_WRITE (V0) {
int button = param.asInt (); 
if (button == 1) {
Serial.write (relON1, sizeof (relON1));
Serial.write (relON1, sizeof (relON1));
}
else {
Serial.write (relOFF1, sizeof (relOFF1));
Serial.write (relOFF1, sizeof (relOFF1));
}
}
BLYNK_WRITE (V1) {
int button = param.asInt (); 
if (button == 1) {
Serial.write (relON2, sizeof (relON2));
Serial.write (relON2, sizeof (relON2));
}
else {
Serial.write (relOFF2, sizeof (relOFF2));
Serial.write (relOFF2, sizeof (relOFF2));
}
}
BLYNK_WRITE (V2) {
int button = param.asInt (); 
if (button == 1) {
Serial.write (relON3, sizeof (relON3));
Serial.write (relON3, sizeof (relON3));
}
else {
Serial.write (relOFF3, sizeof (relOFF3));
Serial.write (relOFF3, sizeof (relOFF3));
}
}
BLYNK_WRITE (V3) {
int button = param.asInt (); 
if (button == 1) {
Serial.write (relON4, sizeof (relON4));
Serial.write (relON4, sizeof (relON4));
}
else {
Serial.write (relOFF4, sizeof (relOFF4));
Serial.write (relOFF4, sizeof (relOFF4));
}
}
void loop ()
{
Blynk.run ();
}