problem ethernet shiled HANRUN HY931147C 14/51

I am kind of new with ethernet shield, any suggestion would be appreciate it, thanks for your time

From amazon:

http://www.amazon.com/gp/product/B00GEM8VZY/ref=s9_simh_gw_p147_d0_i1?pf_rd_m=ATVPDKIKX0DER&pf_rd_s=desktop-1&pf_rd_r=093F462TT4RB3HF81RPA&pf_rd_t=36701&pf_rd_p=2079475242&pf_rd_i=desktop

and using the webserver example from library, modifying IP and MAC address, I keep getting the same error:

Arduino:1.6.3 (Windows 7), Placa:“Arduino Mega or Mega 2560, ATmega2560 (Mega 2560)”

C:\Users\JGV\Documents\Arduino\libraries\Ethernet\Ethernet.cpp: In member function ‘void EthernetClass::begin(uint8_t*, IPAddress, IPAddress, IPAddress, IPAddress)’:

C:\Users\JGV\Documents\Arduino\libraries\Ethernet\Ethernet.cpp:65:39: error: no matching function for call to ‘W5100Class::setIPAddress(IPAddress::&)’

W5100.setIPAddress(local_ip._address);

^

C:\Users\JGV\Documents\Arduino\libraries\Ethernet\Ethernet.cpp:65:39: note: candidate is:

In file included from C:\Users\JGV\Documents\Arduino\libraries\Ethernet\Ethernet.cpp:1:0:

C:\Users\JGV\Documents\Arduino\libraries\Ethernet\utility/w5100.h:392:6: note: void W5100Class::setIPAddress(uint8_t*)

void W5100Class::setIPAddress(uint8_t *_addr) {

^

C:\Users\JGV\Documents\Arduino\libraries\Ethernet\utility/w5100.h:392:6: note: no known conversion for argument 1 from ‘IPAddress::’ to ‘uint8_t* {aka unsigned char*}’

C:\Users\JGV\Documents\Arduino\libraries\Ethernet\Ethernet.cpp:66:38: error: no matching function for call to ‘W5100Class::setGatewayIp(IPAddress::&)’

W5100.setGatewayIp(gateway._address);

^

C:\Users\JGV\Documents\Arduino\libraries\Ethernet\Ethernet.cpp:66:38: note: candidate is:

In file included from C:\Users\JGV\Documents\Arduino\libraries\Ethernet\Ethernet.cpp:1:0:

C:\Users\JGV\Documents\Arduino\libraries\Ethernet\utility/w5100.h:368:6: note: void W5100Class::setGatewayIp(uint8_t*)

void W5100Class::setGatewayIp(uint8_t *_addr) {

^

C:\Users\JGV\Documents\Arduino\libraries\Ethernet\utility/w5100.h:368:6: note: no known conversion for argument 1 from ‘IPAddress::’ to ‘uint8_t* {aka unsigned char*}’

C:\Users\JGV\Documents\Arduino\libraries\Ethernet\Ethernet.cpp:67:38: error: no matching function for call to ‘W5100Class::setSubnetMask(IPAddress::&)’

W5100.setSubnetMask(subnet._address);

^

C:\Users\JGV\Documents\Arduino\libraries\Ethernet\Ethernet.cpp:67:38: note: candidate is:

In file included from C:\Users\JGV\Documents\Arduino\libraries\Ethernet\Ethernet.cpp:1:0:

C:\Users\JGV\Documents\Arduino\libraries\Ethernet\utility/w5100.h:376:6: note: void W5100Class::setSubnetMask(uint8_t*)

void W5100Class::setSubnetMask(uint8_t *_addr) {

^

C:\Users\JGV\Documents\Arduino\libraries\Ethernet\utility/w5100.h:376:6: note: no known conversion for argument 1 from ‘IPAddress::’ to ‘uint8_t* {aka unsigned char*}’

Multiple libraries were found for “SPI.h”

Used: C:\Users\JGV\Documents\Arduino\libraries\SPI

Not used: C:\Program Files (x86)\Arduino\hardware\arduino\avr\libraries\SPI

Multiple libraries were found for “Ethernet.h”

Used: C:\Users\JGV\Documents\Arduino\libraries\Ethernet

Not used: C:\Program Files (x86)\Arduino\libraries\Ethernet

Error de compilación

This report would have more information with
“Show verbose output during compilation”
activala desde Archivo > Preferencias

and using the webserver example from library

It would be much more useful if you posted YOUR code, instead of expecting us to hunt for some code that might, or might not, resemble YOUR code.

What IDE version are you using? That looks like a response from an early version of the ethernet library.

// this
   W5100.setIPAddress(local_ip._address);
// has been replaced with this
   W5100.setIPAddress(local_ip.raw_address());

edit: By the look of the path to that library, I think that ethernet library has been imported. If so, it is an old library.

/*
Web Server

A simple web server that shows the value of the analog input pins.
using an Arduino Wiznet Ethernet shield.

Circuit:

  • Ethernet shield attached to pins 10, 11, 12, 13
  • Analog inputs attached to pins A0 through A5 (optional)

created 18 Dec 2009
by David A. Mellis
modified 9 Apr 2012
by Tom Igoe

*/

#include <SPI.h>
#include <Ethernet.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, 10, 190);

// Initialize the Ethernet server library
// with the IP address and port you want to use
// (port 80 is default for HTTP):
EthernetServer server(80);

void setup() {
// Open serial communications and wait for port to open:
Serial.begin(9600);
while (!Serial) {
; // wait for serial port to connect. Needed for Leonardo only
}

// start the Ethernet connection and the server:
Ethernet.begin(mac, ip);
server.begin();
Serial.print("server is at ");
Serial.println(Ethernet.localIP());
}

void loop() {
// listen for incoming clients
EthernetClient client = server.available();
if (client) {
Serial.println(“new client”);
// an http request ends with a blank line
boolean currentLineIsBlank = true;
while (client.connected()) {
if (client.available()) {
char c = client.read();
Serial.write(c);
// if you’ve gotten to the end of the line (received a newline
// character) and the line is blank, the http request has ended,
// so you can send a reply
if (c == ‘\n’ && currentLineIsBlank) {
// send a standard http response header
client.println(“HTTP/1.1 200 OK”);
client.println(“Content-Type: text/html”);
client.println(“Connection: close”); // the connection will be closed after completion of the response
client.println(“Refresh: 5”); // refresh the page automatically every 5 sec
client.println();
client.println("");
client.println("");
// output the value of each analog input pin
for (int analogChannel = 0; analogChannel < 6; analogChannel++) {
int sensorReading = analogRead(analogChannel);
client.print(“analog input “);
client.print(analogChannel);
client.print(” is “);
client.print(sensorReading);
client.println(”
“);
}
client.println(””);
break;
}
if (c == ‘\n’) {
// you’re starting a new line
currentLineIsBlank = true;
}
else if (c != ‘\r’) {
// you’ve gotten a character on the current line
currentLineIsBlank = false;
}
}
}
// give the web browser time to receive the data
delay(1);
// close the connection:
client.stop();
Serial.println(“client disconnected”);
}
}

OK, let me ask you again: DID YOU IMPORT THAT ETHERNET LIBRARY? Is it in the same folder as your sketches in a folder called libraries?

warning: If you ignore me, I will ignore you.

SurferTim: What IDE version are you using? That looks like a response from an early version of the ethernet library.

// this
   W5100.setIPAddress(local_ip._address);
// has been replaced with this
   W5100.setIPAddress(local_ip.raw_address());

edit: By the look of the path to that library, I think that ethernet library has been imported. If so, it is an old library.

I already update the library with "library manager", I can not even compile an example program using such library, I am running out of ideas...

SurferTim: OK, let me ask you again: DID YOU IMPORT THAT ETHERNET LIBRARY? Is it in the same folder as your sketches in a folder called libraries?

warning: If you ignore me, I will ignore you.

yes my friend is in the folder of libraries on arduino folder,

Then navigate to the Arduino/libraries folder and delete the Ethernet folder there. Then close and reopen the IDE.