LED Light on, when BT Device connected?

Hi there,

I am using an EPS32 as a Bluetooth proxy - and also it is controlling lights on a 3d printed model figure.
Now, I would like to know, if there’s a way to use the LED light also to see, if the BT Proxy is connected with a BT device…

So I think, the LED should be on - if a BT device is connected to the Proxy - and off, if it is disconnected.

Is there a way on how this could be implemented?

I think this will depend on the type of BT device and are you just wanting it to trigger if it ‘sees’ the device?

If it’s something passive and you just want presence detection, you could use this: