How to pass information into a custom data type


first off, apologize if i'm not using right c / c++ nomenclature. it's able stick me.

i'm trying use newly redesigned icmpping.h ping address put in keypad. information available string ("192.168.1.100") or byte array ([192],[168],[1],[100]). in example given, there line:
code: [select]

ipaddress pingaddr(192,168,1,100);

i tried reading through header file , think it's little-endian uint32_t data type. i've tried number of items, seem have promise this:
code: [select]

ipaddress pingaddr(newip[0], newip[1], newip[2], newip[3]);

however, error:
code: [select]
error: expected unqualified-id before numeric constant

how can pass manual data header?


second post in section...

read before posting programming question

quote
6. getting on forum
post complete sketch (program code)! if don't waste time while people ask that.


if sketch large, attach reply (under additional options).  otherwise, please use [code] [/code] tags.


Arduino Forum > Using Arduino > Programming Questions > How to pass information into a custom data type


arduino

Comments

Popular posts from this blog

Convierte tu Raspberry en un NAS. Firmware fvdw-sl 15.3 - Raspberry Pi Forums

Rasperry Wifi LAN Controller - Raspberry Pi Forums

Unlock car with bluetooth and car key