Port of TI's CC3100 Websock camera demo. Using FreeRTOS, mbedTLS, also parts of Arducam for cams ov5642 and 0v2640. Can also use MT9D111. Work in progress. Be warned some parts maybe a bit flacky. This is for Seeed Arch max only, for an M3, see the demo for CM3 using the 0v5642 aducam mini.
Httpserverapp
Functions | |
void | WebSocketCloseSessionHandler (void) |
Callback function that indicates that Websocket is closed Once this is called the server acts as HTTP Server. | |
void | WebSocketRecvEventHandler (UINT16 uConnection, char *ReadBuffer) |
This websocket Event is called when WebSocket Server receives data from client. | |
void | WebSocketHandshakeEventHandler (UINT16 uConnection) |
This websocket Event indicates successful handshake with client Once this is called the server can start sending data packets over websocket using the sl_WebSocketSend API. | |
void | HttpServerAppTask (void *param) |
Task function start the device and crete a TCP server showcasing the smart plug. | |
void | WebSocketRecvEventHandler (uint16_t uConnection, char *ReadBuffer) |
This websocket Event is called when WebSocket Server receives data from client. | |
void | WebSocketHandshakeEventHandler (uint16_t uConnection) |
Callback function that indicates that handshake was a success Once this is called the server can start sending data packets over websocket using the sl_WebSocketSend API. |
Function Documentation
void HttpServerAppTask | ( | void * | param ) |
Task function start the device and crete a TCP server showcasing the smart plug.
Definition at line 191 of file httpserverapp.cpp.
void WebSocketCloseSessionHandler | ( | void | ) |
Callback function that indicates that Websocket is closed Once this is called the server acts as HTTP Server.
- Returns:
- None
Definition at line 89 of file httpserverapp.cpp.
void WebSocketHandshakeEventHandler | ( | UINT16 | uConnection ) |
This websocket Event indicates successful handshake with client Once this is called the server can start sending data packets over websocket using the sl_WebSocketSend API.
- Parameters:
-
[in] uConnection Websocket Client Id
- Returns:
- none
Definition at line 176 of file httpserverapp.cpp.
void WebSocketHandshakeEventHandler | ( | uint16_t | uConnection ) |
Callback function that indicates that handshake was a success Once this is called the server can start sending data packets over websocket using the sl_WebSocketSend API.
- Parameters:
-
[in] uConnection Websocket Client Id
- Returns:
- void
void WebSocketRecvEventHandler | ( | UINT16 | uConnection, |
char * | ReadBuffer | ||
) |
This websocket Event is called when WebSocket Server receives data from client.
- Parameters:
-
[in] uConnection Websocket Client Id [in] *ReadBuffer Pointer to the buffer that holds the payload.
- Returns:
- none.
Definition at line 132 of file httpserverapp.cpp.
void WebSocketRecvEventHandler | ( | uint16_t | uConnection, |
char * | ReadBuffer | ||
) |
This websocket Event is called when WebSocket Server receives data from client.
- Parameters:
-
[in] puConnection Websocket Client Id [in] *ReadBuffer Pointer to the buffer that holds the payload.
- Returns:
- none.
Generated on Tue Jul 12 2022 22:22:38 by 1.7.2