Bluetooth pair with password

Hello!
It’s possibile to connect another device sending a keypass in the connect method.
I’m tryng bluetooth-serial but i can’t show PIN prompt and i can’t send PIN automally. Now i’m tryng bluetoothle…
Someone can help me?