Skip to content

Commit

Permalink
[BLUFI] Enable larger notifications (#2107)
Browse files Browse the repository at this point in the history
by replacing esp_blufi_send_notify by esp_blufi_send_custom_data

Co-authored-by: Florian <1technophile@users.noreply.github.com>
  • Loading branch information
1technophile and 1technophile authored Nov 12, 2024
1 parent fdc7435 commit 379312a
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions main/Zblufi.ino
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 379312a

Please sign in to comment.