[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>
This commit is contained in:
FlorianandFlorian authored and GitHub committed 2024-11-12 08:37:51 -06:00
1 parent fdc7435079
commit 379312a127
1 file changed
+1 -5
+1 -5
View File
@@ -142,11 +142,7 @@ void sendCustomDataNotification(const char* message) {
notification[2] = getNextSequence();
notification[3] = static_cast<uint8_t>(messageLength);
memcpy(&notification[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