I have an application in mind for which I'd like 3 or more Arduino Nano BLE-based devices to be "mutually self-aware" in that each device should turn on its LED if another device is close enough that the RSSI is greater than -80 (for example). I think this requires each Arduino to [u]both[/u] be a peripheral device which advertises a given service S with characteristic C and also be a central device which scans for and connects to peripherals advertising (S,C).
I am aware of the closed thread https://forum.arduino.cc/index.php?topic=680404.0 but haven't been able to get the idea to work.
Can anyone help? If acting as central and peripheral at the same time (i.e. both scanning for / connecting to peripherals and advertising) is not feasible then would it be possible to have my void loop() make the Arduino alternate acting as central and peripheral?
Is there any sample working code or snippets that would be helpful to me?
Thanks in advance for any help.