Hi all,
As the title suggests im after a bit of guidance on the order of events when communicating using BLE.
My little project has me using 3 x nano 33 ble boards.
For now im connecting two buttons to my central device.
When button 1 is pressed, ble peripheral 1 does a few flashes of its onboard rgb.
The same goes for button2 and ble peripheral 2.
Im getting mixed up when im writing the central device.
When do i scan for peripherals?
Should i only do this when a button is pressed?
Ive read a few of the examples but they seem to always be connected rather then a connection been triggered from an action.
Thanks in advance