Hi, I have the Dum. and Eth Shield. I am trying to be able to read and print the ip, gw, and subnet info to a telnet session, however I am new to the whole byte, string, char business and am unsure as to how to actually print the values. for instance i have
i've tried something like a telnet.println(ip) but it gives me an "(byte[4]) is ambiguous error. what kind of syntax should I be using? also, would I be able to change the ip value from a telnet.read();?
thanks for the help on the printing of the array. for the changing the ip, i was thinking that possibly if you changed the ip info in the order of, subnet, gateway, ip then do a soft reset of the device which would restart the ethernet session. would that work? it is really imperative that I can change the ip info of the device. if not possible over the telnet session, could i do it over a serial connection?
now you've confused me lol...the point of this device is so that others can use it and change the default ip address from a telnet prompt
i was thinking more about it and what if i stored the new ip info input into a buffer of sorts and then did a soft reset and had the arduino ethernet server start off of that buffer. and also it would start off that buffer every time the arduino is initialized
the point of this device is so that others can use it and change the default ip address from a telnet prompt
OK. Still not sure I understand this, but, that's not the issue.
i was thinking more about it and what if i stored the new ip info input into a buffer of sorts
You could do that.
and then did a soft reset
Not sure what this means, or how you would accomplish it.
and had the arduino ethernet server start off of that buffer.
Well, that buffer's data would have been lost in a reset.
You could store the IP address in EEPROM, and read from there on startup to get the IP address to use. Then, you could change the value in EEPROM with the right input.