Go Down

Topic: EthernetIPAddress documentation error? (Read 942 times) 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: 1L3CTDoTgrXNA5WyF77uWqt4gUdye9mezN
Send Litecoin tips to : LVtpaq6JgJAZwvnVq3ftVeHafWkcpmuR1e

Go Up