Author Topic: get command: need help  (Read 3091 times)

dabaf

  • Newbie
  • *
  • Posts: 2
    • View Profile
get command: need help
« on: November 09, 2009, 01:01:32 PM »
Hi everybody,
I d like to know in which part of the C code I can extract information coming from the get command , as in http://10.1.0.1/?a2=1. I try to look in the cmd.c code but I cant find substantial information?  Also, is it possible to add custom command like in the http command, for eg : ?T=10 and extract the value in the code to display in a lcd.
I will appreciate your help and commentary ,

Thanx,

DABAF

« Last Edit: November 09, 2009, 01:08:43 PM by dabaf »

ymasur

  • Full Member
  • ***
  • Posts: 13
    • View Profile
    • Homepage ymasur
Re: get command: need help
« Reply #1 on: November 15, 2009, 12:05:02 PM »
Hello,
In the websrvr65_v310 version, the cmd.c contains the interpreter to do this. It starts at line 540, execNameValueCmd() and ends at ... 1208.
To using your own GET variables, you can define a new group in cmd.h, or (best way in my mind) define it in a new .h file.

Regards,
//Yves

dabaf

  • Newbie
  • *
  • Posts: 2
    • View Profile
Re: get command: need help
« Reply #2 on: November 16, 2009, 08:07:58 AM »
Thx Yves for your help :lol:.

DABAF,