LED Control using Proximity on NRF52811 evaluation Board (ublox BMD 360)

Hello Everyone, 

I am using  NRF52811 evaluation board  for my development purpose using SDK 2.6.1 on visual studio code. 

My tasks involve LED control using Bluetooth as follows.

task 1: Turn on/off LEDs using button press on user device(NRF connect on android phone)

task 2: turn on/off LEDs using distance of 5 meter Exceed: for example LED should turn on in distance of 5 meter or less.

I have already  implemented task 1 but can anyone guide me how I can connect and control LEDs  in accordance with the distance. 

Id there any example available which I can use to connect to my  nrf52811 BLE board  and control LED   using distance. 

Related