ether.findKeyVal - ENC28J60 vs W5100
hi,
i have web page in arduino configure ip address, date / time , other things.
i use shild enc28j60 , ether.findkeyval function has in library.
with use function below read url arduino receives , separate ip addresses, gateway , etc.
---- function
static int getintarg (const char * data, const char * key, int value = -1) {
char temp [10];
if (ether.findkeyval (data + 7, temp, sizeof temp, key)> 0)
value = atoi (temp);
return value;
}
ip1 = getintarg (data, "i1");
--------------------------------
but shild gives lot of communication failure problem i'm trading w5100.
but did not find enc28j60 ether.findkeyval.
anyone have idea how can this?
/ip?i1=192&i2=168&i3=1&i4=10&g1=192&g2=168&g3=1&g4=1
separate url , ip , gw save in eeprom?
thanks
i have web page in arduino configure ip address, date / time , other things.
i use shild enc28j60 , ether.findkeyval function has in library.
with use function below read url arduino receives , separate ip addresses, gateway , etc.
---- function
static int getintarg (const char * data, const char * key, int value = -1) {
char temp [10];
if (ether.findkeyval (data + 7, temp, sizeof temp, key)> 0)
value = atoi (temp);
return value;
}
ip1 = getintarg (data, "i1");
--------------------------------
but shild gives lot of communication failure problem i'm trading w5100.
but did not find enc28j60 ether.findkeyval.
anyone have idea how can this?
/ip?i1=192&i2=168&i3=1&i4=10&g1=192&g2=168&g3=1&g4=1
separate url , ip , gw save in eeprom?
thanks
the library delivered source. open cpp file, , find out how implements findkeyval().
i'm going guess uses strtok() parsing.
i'm going guess uses strtok() parsing.
Arduino Forum > Using Arduino > Programming Questions > ether.findKeyVal - ENC28J60 vs W5100
arduino
Comments
Post a Comment