Closed sialalex closed 2 years ago
Hi. The registerLePsm
method does not return anything, hence you see undefined
if you print the return value. Instead, when the remote device makes a connection to this psm, that inner callback will be called.
Hi!
Thank you very much for the fast response! I have an additional question - the sequence of my code is right? I mean that a register the the LE PSM after a successfull GATT Connection? Or should i change something? Maybe to register the LE PSM before...
Thank you in andvance!
Your code uses the perfectly correct sequence. You register psm on an established connection, not before.
Hello!
I am trying to implement an BLE L2CAP COC Server Socket on a RPi.
I used the code samples, but I always get "undefined" when calling "conn.l2capCoCManager.registerLePsm".