From ea77ef712249d2a4f0621fda7151d08698dea4b0 Mon Sep 17 00:00:00 2001 From: Nivek-domo <123359286+Nivek-domo@users.noreply.github.com> Date: Sun, 4 Aug 2024 13:43:24 +0200 Subject: [PATCH] Update Meshtastic.h MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit need to change set_text_message_callback` dans la bibliothèque « mt_protocol.cpp » as i request you before to have the canal of the received message --- src/Meshtastic.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Meshtastic.h b/src/Meshtastic.h index 197e16b..a3096e5 100644 --- a/src/Meshtastic.h +++ b/src/Meshtastic.h @@ -73,7 +73,7 @@ typedef enum { bool mt_request_node_report(void (*callback)(mt_node_t *, mt_nr_progress_t)); // Set the callback function that gets called when the node receives a text message. -void set_text_message_callback(void (*callback)(uint32_t from, const char * text)); +void set_text_message_callback(void (*callback)(uint32_t from, const char* text, uint8_t channel)); // Send a text message with *text* as payload, to a destination node (optional), on a certain channel (optional). bool mt_send_text(const char * text, uint32_t dest = BROADCAST_ADDR, uint8_t channel_index = 0);