change delay for millis

I would change the functions delay by millis, can someone help me out, plase?

#include <SPI.h>
#include <Client.h>
#include <Ethernet.h>
#include <Server.h>
#include <Udp.h>

// Enter a MAC address and IP address for your controller below.
// The IP address will be dependent on your local network:
byte mac[] = { 0xDE, 0xAD, 0xBE, 0xEF, 0xFE, 0xED };
IPAddress ip(192,168,1, 177);

// Initialize the Ethernet server library
// with the IP address and port you want to use
// (port 80 is default for HTTP):
EthernetServer server(80);
int PinLed1= 3;
int PinLed2= 4;
//int Entrada1= 5;
//int Entrada2=6;
String readString = String(30);

void setup()
{
// start the Ethernet connection and the server:
Ethernet.begin(mac, ip);
server.begin();
pinMode(PinLed1,OUTPUT);
pinMode(PinLed2,OUTPUT);
//pinMode(Entrada1,INPUT);
//pinMode(Entrada2,INPUT);
}

void loop()
{
// listen for incoming clients
EthernetClient client = server.available();
if (client) {
// an http request ends with a blank line
boolean currentLineIsBlank = true;
while (client.connected()) {
if (client.available()) {
char c = client.read();
if (readString.length()<30)
{
readString += c;
}
if (c=='\n')
{

if(readString.indexOf("Led1=On")>0){
digitalWrite(PinLed1,HIGH);
delay(1000);
digitalWrite(PinLed1,LOW);
}
if(readString.indexOf("Led1=Off")>0){
digitalWrite(PinLed1,LOW);
}
if(readString.indexOf("Led2=On")>0){
digitalWrite(PinLed2,HIGH);
delay(10000);
digitalWrite(PinLed2,LOW);
}
if(readString.indexOf("Led2=Off")>0){
digitalWrite(PinLed2,LOW);
}

readString="";

client.println("HTTP/1.1 200 OK");
client.println("Content-Type: text/html");
client.println();

//Crear pagina web HTML

client.println("");
client.println("");
client.println("Home");
client.println("");
client.println("");
client.println("

Home

");
client.println("

");
client.println("

Switch

");
client.println("

");
client.println("");
client.println("");
client.println("");
client.println("");
client.println("
LED 1 LED 2
");
client.println("

");
client.println("

Sensor

");
client.println("");
client.println("");

client.stop();

}
}
}
}
}

can someone help me out, plase?

Have you read the blink without delay example?
Did you understand it?
What have you tried?

You need to know, on any given pass through loop(), what you need to do, based on what you have already done (turned pin n on, for example) and how long it has been since you did that.

I read this but i don't understand

I read this but i don't understand

This? What did you read? What didn't you understand?

The blink without delay example is very simple. On each pass through loop(), it asks the question "Is it time to do something?". The answer depends, in that example, solely on when the last time something happened and how long between events.

In your case, the answer is a bit more complicated. The answer depends on whether the user has requested that the pin be turned on, and, if so, how long it has been since that happened, and how long the pin should be on.

The demo several things at a time is an extended example of the BWoD technique. It may help to give you the idea. You might also look at planning and implementing a program

...R

Robin2:
The demo several things at a time is an extended example of the BWoD technique. It may help to give you the idea. You might also look at planning and implementing a program

...R

example plissss

Adriansalguero:
example plissss

The links I gave you are examples - did you read them carefully ?

...R

who can help me ??!!!

here is yet another example

multi-tasking-the-arduino-part-1

.

Adriansalguero:
who can help me ??!!!

Have you spent a few hours trying hard to understand the examples you have already been given?

If so, and if you don't understand, tell us what you don't understand and we will try to help.

...R