ESP32 not connecting as client to Playbulb

I am attempting to control a Playbulb candle with an ESP32 as a BLE client. I’m using BLEClient and the connect() function just hangs up. When using nRF Connect on ios it requires saying yes to a pairing request to connect. Could this be hanging up the connect() function, and is there a way to code in an acceptance of the pairing request. Thanks.