Hi everyone, I am trying to running a function which lights up the built in Led of a d1 mini after receiveing a TCP message, in the onData function of the client I'm running this
digitalWrite(LED_BUILTIN,LOW); Serial.println("on"); delay(1500); digitalWrite(LED_BUILTIN,HIGH); Serial.println("off");
(with d1 mini low means on). It remains of for a short while (like 10ms) and then it goes off, I tried increasing the value and nothing changes, I tried the blinking code with the same delay and it works. Any idea?