Hi,
I am developing an application that needs to activate a relay on a central device when an event occurs on the peripheral device.
The peripheral will always connect to the same central device.
I need direct communication because there will be more central-peripheral modules with the same functions in the vicinity.
I have studied the example "ble_app_hids_keyboard" and I see that it uses whitelist.
After reading several articles on DevZone, I can't quite understand how data is entered into lists (whitelist_set ()).
Is it possible to use direct communication with the same central device without using whitelist?
How do I enter the ID of the central device in the peripheral the first time? I can use a switch the first time to syncronice peripheral/central if it is necessary.
Both the peripheral and the central are powered by batteries.
Once the ID of the central device has been entered in the peripheral, when changing the batteries, will the ID of the central device disappear on the peripheral?
In this case, is it necessary to use an external E2PROM to save the ID or is it saved directly to the internal flash?
Thanks in advance and Merry Christmas