Hi,
How can I develop my dongle to connect to devices with the name "device X", where X is a variable that can be 1,2,3,....
For example I want the dongle to connect to the device names : "device #1", "device #2".
Best Regards
JK
Hi,
How can I develop my dongle to connect to devices with the name "device X", where X is a variable that can be 1,2,3,....
For example I want the dongle to connect to the device names : "device #1", "device #2".
Best Regards
JK
Pretty sure there are SDK examples which connect based on the advertised name ...
EDIT
Here you go - very first example on the list:
Hi,
seems you didn't understand me right.
The first part of the devices names is permanent, the second part of the names is different for each device ( the different part can be every number from 1,2,3 .. and so on).
BR
JK
Hi,
seems you didn't understand me right.
The first part of the devices names is permanent, the second part of the names is different for each device ( the different part can be every number from 1,2,3 .. and so on).
BR
JK
Yes, I understood.
The example shows you how to decide whether to connect based on the advertised name.
So you just need to change it to look at only part of the name - instead of the whole name.
EDIT
Also take a look at this: https://devzone.nordicsemi.com/f/nordic-q-a/56558/sdk-16-get-device-name-from-advertising-data - on how to get the advertising name from the advertising report ...
Hi,
so using the filter SCAN_SHORT_NAME_FILTER, will do the work for me.
The central will connect to the peripheral device that has the name provided to the filter as a first part of the full peripheral device name.
Is that correct ?
Thanks for your help
BR
JK
You'd have to check the documentation for what, exactly the SCAN_SHORT_NAME_FILTER filter does.
But it's all provided as source - so you can see what it does, and adapt that to your requirements ...