From 379312a12716cf171d878ef19ab38dcd9238ab0e Mon Sep 17 00:00:00 2001 From: Florian Date: Tue, 12 Nov 2024 08:37:51 -0600 Subject: [PATCH] [BLUFI] Enable larger notifications (#2107) by replacing esp_blufi_send_notify by esp_blufi_send_custom_data Co-authored-by: Florian <1technophile@users.noreply.github.com> --- main/Zblufi.ino | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/main/Zblufi.ino b/main/Zblufi.ino index 03e97edd16..914453f8a9 100644 --- a/main/Zblufi.ino +++ b/main/Zblufi.ino @@ -142,11 +142,7 @@ void sendCustomDataNotification(const char* message) { notification[2] = getNextSequence(); notification[3] = static_cast(messageLength); memcpy(¬ification[4], message, messageLength); - - struct pkt_info pkts; - pkts.pkt = notification; - pkts.pkt_len = sizeof(notification); - esp_blufi_send_notify(&pkts); + esp_blufi_send_custom_data(notification, sizeof(notification)); } # ifdef BT_CONNECTION_TIMEOUT_MS