Hello,
In websock camera sdk example on sending one request that is capture message I am getting n number of times the hello string in response . I am seeing this responses in Wireshark. How can I achieve one request one response ?? as I want to write this response data to a file so I only need one response for one request .I am attaching wireshark file too in which you can see that I am getting n number of times hello string in response. Many Thanks.
My Code :
void CameraAppTask(void *param) { UINT8 Opcode = 0x02; struct HttpBlob Write; // InitCameraComponents(640, 480); while(1) { if(g_close == 0) { //Write.uLength = StartCamera((char **)&Write.pData); unsigned char* c = "hello\0"; Write.uLength = 6; Write.pData = (UINT8*)c; if(!sl_WebSocketSend(g_uConnection, Write, Opcode)) { while(1); } } } }
(Please visit the site to view this file)