
47
Parse_Request is a function that does not return any value. It is responsible for
determining the syntax of incoming request/command. There are few possible command
syntax listed below.
- GET/POST if incoming request is sent by web browser we need to check the
type of the request. Get returns main website stored on the controller (implemented
as a example) while Post recognize the type of command and execute it (code
written but not fully implemented).
- Servo position in this version there is a possibility to connect two servomotors to
pos=
poz=
- Photocell value on/off as reading data from photocell is constant when turned on
it uses much resources and power. To avoid unnecessary lost of power there is a
photo=
- Auto photo on/off to control the ph ph_val
used.
temp += inc_data_all.charAt(j);
}
ph=1;
ph_val=0;
for (int i = 0; i < temp.length()-1; i++)
{
ph_val = (ph_val * 10) + temp.charAt(i) - '0';
}
Flush_RX();
inc_data_all = "";
SPI_Uart_print("command-OK");
}
}
Kommentare zu diesen Handbüchern