Webserver Access Via Smartphone - Avnet NXP RT1176 Hardware User's Manual

Ghz real-time sbc board
Table of Contents

Advertisement

Example of a callback function:
static int CGI_Example(HTTPSRV_CGI_REQ_STRUCT *param)
{
char[] data = "OK"; // dummy text data
HTTPSRV_CGI_RES_STRUCT response = {0};
response.ses_handle
response.status_code
response.content_type
response.data
response.data_length
response.content_length = response.data_length;
HTTPSRV_cgi_write(&response);
return (response.length);
}
12.7.3

Webserver access via Smartphone

Access to the Webserver pages via smartphone Wi-Fi network connection is easily accommodated.
Shown here are webpage examples reformatted for viewing and control from the smaller screen
= param->ses_handle;
= HTTPSRV_CODE_OK;
= HTTPSRV_CONTENT_TYPE_PLAIN;
= data;
= strlen(data);
Page 59

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the NXP RT1176 and is the answer not in the manual?

Questions and answers

Table of Contents