Beijing
Offline
Newbie
Karma: 0
Posts: 9
|
 |
« on: February 21, 2013, 01:00:03 am » |
Hi there, I'm new to here and have some questions: I am using MEGA 2560 and Ethernet shield to control some relays. There are some status stored in SD card, such as IP and MAC, and relays' status, like below: ip = 192.168.1.129 mac = 00-4A-E5-8B-0D-6D baud = 19200 R1,P,T1000 R2,P,T1000 R3,P,T1000 R4,P,T1000 R5,P,T1000 R6,P,T1000 R7,P,T1000 R8,P,T1000 G1,1-2,T1000-500 G2,1-2-3,T1000-500-1000 G3,1-2-3-4,T1000-500-1000-500 G4,1-2-3-4-5,T1000-500-1000-500-1000 G5,1-2-3-4-5-6-7-8,T1000-900-800-700-600-500-400-300
The question is: I need to change the configs.txt online. My solution is: print the current configs.txt on browser in textarea. If you want to change the configs, you just modify the text content, and then press "SUBMIT", Arduino will save the new configs in buffer, delete the previous one, and create a new configs.txt according to the buffer. But it seems dificult to use "method=GET" to handle it, the URL cannot hold too many strings! For "method=POST", I am not sure whether it will work. So can anybody help me to POST or do you have other better opinions? Thanks a lot!
|