Class L2capServer
java.lang.Object
com.codename1.bluetooth.le.L2capServer
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract AsyncResource<L2capChannel> accept()Resolves with the next incomingL2capChannel.abstract voidclose()Stops listening; pendingaccept()calls fail withBluetoothError.IO_ERROR.abstract intgetPsm()The dynamic Protocol/Service Multiplexer the stack assigned to this listener; advertise it to centrals.
-
Constructor Details
-
L2capServer
protected L2capServer()Constructed by ports; not application API.
-
-
Method Details
-
getPsm
public abstract int getPsm()The dynamic Protocol/Service Multiplexer the stack assigned to this listener; advertise it to centrals. -
accept
Resolves with the next incomingL2capChannel. Call again after each resolution to accept further channels. -
close
public abstract void close()Stops listening; pendingaccept()calls fail withBluetoothError.IO_ERROR.
-