Go Down

Topic: EthernetIPAddress documentation error? (Read 1 time) previous topic - next topic

andrew_from_pretoria

It seems that the IPAddress is not comma delimited as stated at http://arduino.cc/en/Reference/EthernetIPAddress
but rather delimited with '.'

I discovered this using the code 'client.connect(c_URL, 80)' , and not working with 'char c_URL[] = "146,64,28,16";' but works with 'char c_URL[] = "146.64.28.16";'

johnwasser

The separators depend on context.

The IPAddress class takes four integer values, separated by commas, as arguments.

An IP address, when part of a URL character string, has four decimal values separated by periods.
Send Bitcoin tips to: 1G2qoGwMRXx8az71DVP1E81jShxtbSh5Hp

Go Up
 


Please enter a valid email to subscribe

Confirm your email address

We need to confirm your email address.
To complete the subscription, please click the link in the email we just sent you.

Thank you for subscribing!

Arduino
via Egeo 16
Torino, 10131
Italy