Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
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