Skip to content

//app/com.bluerpc.worker/BlueRPCService

BlueRPCService

[androidJvm]\ class BlueRPCService(ctx: Context)

Constructors

BlueRPCService [androidJvm]
constructor(ctx: Context)

Functions

Name Summary
bLEConnect [androidJvm]
open fun bLEConnect(request: <Error class: unknown class>?, responseObserver: StreamObserver<<Error class: unknown class>>?)
connect
bLEDisconnect [androidJvm]
open fun bLEDisconnect(request: <Error class: unknown class>?, responseObserver: StreamObserver<<Error class: unknown class>>?)
disconnect
bLEGetConnectionProperties [androidJvm]
open fun bLEGetConnectionProperties(request: <Error class: unknown class>?, responseObserver: StreamObserver<<Error class: unknown class>>?)
get connection properties
bLEGetDevices [androidJvm]
open fun bLEGetDevices(request: Void?, responseObserver: StreamObserver<<Error class: unknown class>>?)
get a list of connected and paired devices
bLEListServices [androidJvm]
open fun bLEListServices(request: <Error class: unknown class>?, responseObserver: StreamObserver<<Error class: unknown class>>?)
list services, characteristics and descriptors for a device
bLENotification [androidJvm]
open fun bLENotification(request: <Error class: unknown class>?, responseObserver: StreamObserver<<Error class: unknown class>>?)
subscribe or unsubscribe to a characteristic notification
bLEPair [androidJvm]
open fun bLEPair(request: <Error class: unknown class>?, responseObserver: StreamObserver<<Error class: unknown class>>?)
pair
bLEPairCode [androidJvm]
open fun bLEPairCode(request: <Error class: unknown class>?, responseObserver: StreamObserver<<Error class: unknown class>>?)
pairing code (should be called after BLEPair when ERROR_CODE_PAIRING_CODE_REQUIRED is returned)
bLEReadCharacteristic [androidJvm]
open fun bLEReadCharacteristic(request: <Error class: unknown class>?, responseObserver: StreamObserver<<Error class: unknown class>>?)
read characteristic
bLEReadDescriptor [androidJvm]
open fun bLEReadDescriptor(request: <Error class: unknown class>?, responseObserver: StreamObserver<<Error class: unknown class>>?)
read descriptor
bLEReceiveDisconnect [androidJvm]
open fun bLEReceiveDisconnect(request: Void?, responseObserver: StreamObserver<<Error class: unknown class>>?)
global method to receive disconnect notifications
bLEReceiveNotifications [androidJvm]
open fun bLEReceiveNotifications(request: Void?, responseObserver: StreamObserver<<Error class: unknown class>>?)
global method to receive all the subscribed notifications
bLEReceiveScan [androidJvm]
open fun bLEReceiveScan(request: Void?, responseObserver: StreamObserver<<Error class: unknown class>>?)
global method to receive scan results
bLEScanStart [androidJvm]
open fun bLEScanStart(request: <Error class: unknown class>?, responseObserver: StreamObserver<<Error class: unknown class>>?)
start a scanner
bLEScanStop [androidJvm]
open fun bLEScanStop(request: Void?, responseObserver: StreamObserver<<Error class: unknown class>>?)
stop the scanner
bLEUnpair [androidJvm]
open fun bLEUnpair(request: <Error class: unknown class>?, responseObserver: StreamObserver<<Error class: unknown class>>?)
unpair
bLEWriteCharacteristic [androidJvm]
open fun bLEWriteCharacteristic(request: <Error class: unknown class>?, responseObserver: StreamObserver<<Error class: unknown class>>?)
write characteristic
bLEWriteDescriptor [androidJvm]
open fun bLEWriteDescriptor(request: <Error class: unknown class>?, responseObserver: StreamObserver<<Error class: unknown class>>?)
write descriptor
hello [androidJvm]
open fun hello(request: <Error class: unknown class>?, responseObserver: StreamObserver<<Error class: unknown class>>?)
setKeystore [androidJvm]
open fun setKeystore(request: <Error class: unknown class>?, responseObserver: StreamObserver<<Error class: unknown class>>?)
set the keystore