Hi,
If i use SCAN_NAME_FILTER, the function nrf_ble_scan_filter_set's 3rd argument is null-terminated string.
But HM-10 send FULL NAME including null(0x00) characters and size including null chars.
"HMSoft" is delivered in ADV packet.
len = 14
type=0x09
"HMSoft\x00\x00\x00\x00"
In nordic source
FILE : ble_advdata.c
FUNCTION :ble_advdata_name_find
parsed_name_lne include null characters. So
it returns false.
Which is problem ?
a) adv packet includes null characters and length include null characters
b) nordic nrf_ble_scan_filter_set with NAME_FILLTER that treats name as null-terminated string.
Thanks..