aboutsummaryrefslogtreecommitdiff
path: root/shared/protocol.h
diff options
context:
space:
mode:
authorlonkaars <loek@pipeframe.xyz>2022-10-19 18:15:36 +0200
committerlonkaars <loek@pipeframe.xyz>2022-10-19 18:15:36 +0200
commit89b8217435286081dc0fe481559da3ee5c20c72a (patch)
tree9be59daf476878a8e55c17776f6c3760d02a27a5 /shared/protocol.h
parente555b5b5e0ad94279ef62d16feacee4976e2970d (diff)
last-records response handler implemented
Diffstat (limited to 'shared/protocol.h')
-rw-r--r--shared/protocol.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/shared/protocol.h b/shared/protocol.h
index c31ebc6..fbe29d6 100644
--- a/shared/protocol.h
+++ b/shared/protocol.h
@@ -137,8 +137,11 @@ ws_protocol_res_handler_t ws_protocol_res_last_records;
* this function should be implemented in the source files of each target
* platform, as the send interface will be different on desktop and on the
* stm32.
+ *
+ * @param data pointer to data char array
+ * @param length length of data array
*/
-void ws_protocol_send_data(ws_s_bin* data);
+void ws_protocol_send_data(const char* data, unsigned int length);
/** @brief response handlers, called when a command is parsed */
static ws_protocol_res_handler_t* g_ws_protocol_res_handlers[WS_PROTOCOL_CMD_AMOUNT] = {