Class RfcommServer
java.lang.Object
com.codename1.bluetooth.classic.RfcommServer
A listening RFCOMM endpoint (SPP server) registered with the local SDP
database via
BluetoothClassic.listen(String, BluetoothUuid, boolean).-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedRfcommServer(BluetoothUuid serviceUuid) Constructed by ports; not application API. -
Method Summary
Modifier and TypeMethodDescriptionabstract AsyncResource<RfcommConnection> accept()Resolves with the next incomingRfcommConnection.abstract voidclose()Stops listening; pendingaccept()calls fail withBluetoothError.IO_ERROR.The service UUID this server was registered under.
-
Constructor Details
-
RfcommServer
Constructed by ports; not application API.
-
-
Method Details
-
accept
Resolves with the next incomingRfcommConnection. Call again after each resolution to accept further clients. -
close
public abstract void close()Stops listening; pendingaccept()calls fail withBluetoothError.IO_ERROR. -
getServiceUuid
The service UUID this server was registered under.
-