[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:
1 parent
fdc7435079
commit
379312a127
1 file changed
+1
-5
+1
-5
@@ -142,11 +142,7 @@ void sendCustomDataNotification(const char* message) {
|
||||
notification[2] = getNextSequence();
|
||||
notification[3] = static_cast<uint8_t>(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
|
||||
|
||||
Reference in new issue
Block a user