Hi, i know this question has been ask before but, i was reading and readind and i could find a way to do it. I got the theory but when i'm going to implement it in my code i get confused.
Starting by symple, i have 2 devices, one of this as central and one of this as peripheral.
I need the peripheral only get connected to this specific central and avoide connection to another.
1-. How i can setup an static address to my central? which part of the code i do that?
2-.I know that it is possible to create a whitelist to save bond info about the connection that has been made but i think i don't need it because i only have 1 central and just want to connect to him. wich part of the code i have to writte to set the address of my central in order to only connect to him? What would be this address, the peer addres or another one?
3-. I have read about directed advertising, what i got was that, you use direct adv when you want to connect to a specific central, but again, where do you specify that?
4-. My peripheral could be scannable but i just want my central could connect not any other device.
Maybe these are newbie question, but how i wrote above, i have read and read and i don't find a good explanation to do that.
Sorry and thanks in advance.