Rpi bluetooth problem

Hi everyone,
I have Raspberry Pi 5. i made a simple program that supposed to connect my phone to the Rpi and for some reason it connect to 1 second and then immediately disconnect.



Can someone please help me?
Thanks,Amit

Do you also have a Clock Timer running?

I believew you need to add "RegisterForBytes" or Strings etc after the call to Connect,
this will complete the connection process

How i do this?

Here is my code, "RegisterForBytes", if you want strings then "RegisterFor Strings"
but you do need the serviceUUID of the RPI (I am not familiar with that)
image