{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'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.


Arduino Forum > Using Arduino > Programming Questions > {solved} Best way to store data?


arduino

Comments

Popular posts from this blog

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

How to format a Get Request

avrdude: verification error, first mismatch at byte 0x0000 0x0c != 0x62