BLE SPP example magic numbers

PeterR
Posts: 621
Joined: Mon Jun 04, 2018 2:47 pm

BLE SPP example magic numbers

Postby PeterR » Tue Nov 27, 2018 2:26 pm

The BLE SPP server example sends up to "mtu-3" bytes using esp_ble_gatts_send_indicate().

Why mtu-3 and not the all the available mtu?
& I also believe that IDF CAN should be fixed.

chegewara
Posts: 2364
Joined: Wed Jun 14, 2017 9:00 pm

Re: BLE SPP example magic numbers

Postby chegewara » Tue Nov 27, 2018 3:34 pm

Because 3 bytes are reserved for indication message OP code or something like that in lower layer driver. It can be found in bluetooth core specification if you really need it.

PeterR
Posts: 621
Joined: Mon Jun 04, 2018 2:47 pm

Re: BLE SPP example magic numbers

Postby PeterR » Wed Nov 28, 2018 10:23 am

Thanks.
& I also believe that IDF CAN should be fixed.

Who is online

Users browsing this forum: Google [Bot] and 86 guests