i want send data atmega32 laravel site, got wiz107 convertor set auto connect laravel site on port 80. atmega--(http)-->wiz107--(http)-->server
the problem slow response time server, time 5 seconds. accessed browser delay no more. running on xampp v3.2.2
how can rid of delay?
this function sends http request
void http_send_get(char *code, char *code_source, char *turnistle_id) { usart_putstring("get "); usart_putstring(http_server_php_script_location); usart_putstring("?code="); usart_putstring(code); usart_putstring("&source="); usart_putstring(code_source); usart_putstring("&turnistle_id="); usart_putstring(turnistle_id); usart_putstring(" http/1.1\r\n"); usart_putstring("accept: text/html,application/xhtml+xml,application/xml;q=0.8\r\n"); usart_putstring("accept-encoding: gzip, deflate\r\n"); usart_putstring("accept-language: ro-ro,ro;q=0.8,en-us;q=0.6,en-gb;q=0.4,en;q=0.2\r\n"); usart_putstring("connection: keep-alive\r\n"); usart_putstring("host: 192.168.1.7\r\n"); usart_putstring("upgrade-insecure-requests: 1\r\n"); usart_putstring("user-agent: mozilla/5.0 (windows nt 5.1; rv:48.0) gecko/20100101 firefox/48.0\")\r\n"); usart_putstring("\r\n"); usart_putc(0x10); }
Comments
Post a Comment