Pages: [1]   Go Down
Author Topic: EthernetIPAddress documentation error?  (Read 916 times)
0 Members and 1 Guest are viewing this topic.
Pretoria, South Africa
Offline Offline
Newbie
*
Karma: 0
Posts: 3
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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";'
Logged

Massachusetts, USA
Offline Offline
Tesla Member
***
Karma: 203
Posts: 8722
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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.
Logged

Send Bitcoin tips to: 1L3CTDoTgrXNA5WyF77uWqt4gUdye9mezN
Send Litecoin tips to : LVtpaq6JgJAZwvnVq3ftVeHafWkcpmuR1e

Pages: [1]   Go Up
Jump to: