Arduino to Web via enc28j60 shield problem.

Good Day. Please take a look with my problem.

My Code:
ether.packetLoop(ether.packetReceive());
if (millis() > timer) {
timer = millis() + 1000;
Serial.println();
Serial.print("<<< REQ “);
ether.hisport = 80;//to access local host
itoa(myInt, myIntAsString, 10); //integer 10 to converted as a character
char finalString = {‘v’,‘a’,‘l’,‘u’,‘e’,’=’,myIntAsString[1],myIntAsString[2],myIntAsString[3],};
ether.browseUrl(PSTR(”/atmos.php?"), finalString , website, my_callback);
}

The Serial Monitor:

[webClient]
IP: 192.168.0.100
GW: 192.168.0.1
DNS: 192.168.0.1
SRV: 192.168.0.110

<<< REQ
<<< REQ
<<< REQ
<<< REQ >>>
HTTP/1.1 200 OK
Date: Thu, 25 Feb 2016 08:13:26 GMT
Server: Apache/2.4.17 (Win32) OpenSSL/1.0.2d PHP/5.6.15
X-Powered-By: PHP/5.6.15
Content-Length: 0
Connection: close
Content-Type: text/html; charset=UTF-8

<<< REQ >>>
HTTP/1.1 200 OK
Date: Thu, 25 Feb 2016 08:13:27 GMT
Server: Apache/2.4.17 (Win32) OpenSSL/1.0.2d PHP/5.6.15
X-Powered-By: PHP/5.6.15
Content-Length: 0
Connection: close
Content-Type: text/html; charset=UTF-8

*loops forever with OK Requests

Problem is: Is there a problem with my network, hardware, or arduino codes that makes 1st REQ does not reply OK? Some test cases I got OK in the 1st REQ but most of the time i got it after a number of failed REQ.

Thanks in advance! :slight_smile:

Is there a problem with my network, hardware, or arduino codes that makes 1st REQ does not reply OK?

We can't possibly tell from that snippet. Post ALL of your code PROPERLY. Read the stickies at the top of the forum BEFORE you post again. Use Tools + Auto Format to properly indent your code before posting it.

      itoa(myInt, myIntAsString, 10); //integer 10 to converted as a character
      char finalString[] = {'v','a','l','u','e','=',myIntAsString[1],myIntAsString[2],myIntAsString[3],};

There is no guarantee that the conversion of an int to a string will result in a 4 byte string. Even if it does, why do you want to throw away the first character? (Array indices start at 0, not 1.)