Bluetooth bLE not connect

I'm not familiar with this code - do you have a reference you can point to?