Beware that this post is related to an SDK in maintenance mode
More Info: Consider nRF Connect SDK for new designs

NRF_BLE_SCAN_NAME_MAX_LEN is not documented correctly?

I am using the Scanning module in NRF5 SDK v17.1.x to set up a BLE scanner that matches  a specific name e.g. 'NordicSemi'.
The above string contains 10 characters  ( But the underlying C string length is presumably set to '11' ? )

Most BLE related specifications refer to a 'length' as the core number of entries in the data.

BUT, I observe that the scanner fails to match if I use this value: 

#define NRF_BLE_SCAN_NAME_MAX_LEN     10

The scanner does detect the remote if I use THIS value:

#define NRF_BLE_SCAN_NAME_MAX_LEN     11

Cheers
RVM

Parents Reply Children
Related