{solved} Best way to store data?
i'm trying set way ping whole subnet's worth of ip addresses, using icmpping (attached), , later on display results on lcd. know i'm going need array of kind, i'm wondering work best. few modifiers:
i don't have code yet, because i'm trying wrap brain around whole array thing. best way this?
- i'm using arduino mega, have room work.
- i don't know how many ip addresses in array. i'm willing hard-code max of 256 if need be.
- the address lengths can vary small 7 large 15 characters.
- i'm passing 4-position byte array ip address (one each octet). if can still use that, that's great, if need convert type, that's fine well.
i don't have code yet, because i'm trying wrap brain around whole array thing. best way this?
if right,
you need convert ip addresses @ moment intend display them. so, may store numbers in 4 byte format (what ipv6?). theoretically there no real limit.
4 bytes 256 addresses generate 1k size array max.
once start display on lcd, can convert send display , use same storage next ip address. once transferred lcd, variables used generate text version of ip address can reused again.
you need convert ip addresses @ moment intend display them. so, may store numbers in 4 byte format (what ipv6?). theoretically there no real limit.
4 bytes 256 addresses generate 1k size array max.
once start display on lcd, can convert send display , use same storage next ip address. once transferred lcd, variables used generate text version of ip address can reused again.
Arduino Forum > Using Arduino > Programming Questions > {solved} Best way to store data?
arduino
Comments
Post a Comment