Package ej.bluetooth
Interface NativesImplementation
-
- All Known Implementing Classes:
NetNativesImplementation,StubNativesImplementation
public interface NativesImplementation
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description booleanaddService(byte[] service, short[] handles)booleanconnect(byte[] deviceAddress)voiddisable()booleandisconnect(short connHandle)booleandiscoverServices(short connHandle, byte[] uuid)booleanenable()booleansendExecuteWriteResponse(short connHandle, short attributeHandle, byte status)booleansendNotification(short connHandle, short attributeHandle, byte[] value, int valueSize, boolean confirm)booleansendPairRequest(short connHandle)booleansendPairResponse(short connHandle, boolean accept)booleansendPasskeyResponse(short connHandle, boolean accept, int passkey)booleansendPrepareWriteResponse(short connHandle, short attributeHandle, byte status, byte[] value, int valueSize, int offset)booleansendReadRequest(short connHandle, short attributeHandle)booleansendReadResponse(short connHandle, short attributeHandle, byte status, byte[] value, int valueSize)booleansendWriteRequest(short connHandle, short attributeHandle, byte[] value, int valueSize, boolean noResponse)booleansendWriteResponse(short connHandle, short attributeHandle, byte status)booleanstartAdvertising(byte[] advertisementData, int advertisementDataSize)booleanstartScanning(byte filterAction, byte filterType, byte[] filterData, int filterDataSize)booleanstopAdvertising()booleanstopScanning()intwaitEvent(byte[] buffer, int bufferLength)
-
-
-
Method Detail
-
waitEvent
int waitEvent(byte[] buffer, int bufferLength)
-
enable
boolean enable()
-
disable
void disable()
-
addService
boolean addService(byte[] service, short[] handles)
-
startScanning
boolean startScanning(byte filterAction, byte filterType, byte[] filterData, int filterDataSize)
-
stopScanning
boolean stopScanning()
-
startAdvertising
boolean startAdvertising(byte[] advertisementData, int advertisementDataSize)
-
stopAdvertising
boolean stopAdvertising()
-
connect
boolean connect(byte[] deviceAddress)
-
disconnect
boolean disconnect(short connHandle)
-
sendPairRequest
boolean sendPairRequest(short connHandle)
-
sendPairResponse
boolean sendPairResponse(short connHandle, boolean accept)
-
sendPasskeyResponse
boolean sendPasskeyResponse(short connHandle, boolean accept, int passkey)
-
discoverServices
boolean discoverServices(short connHandle, byte[] uuid)
-
sendReadRequest
boolean sendReadRequest(short connHandle, short attributeHandle)
-
sendWriteRequest
boolean sendWriteRequest(short connHandle, short attributeHandle, byte[] value, int valueSize, boolean noResponse)
-
sendReadResponse
boolean sendReadResponse(short connHandle, short attributeHandle, byte status, byte[] value, int valueSize)
-
sendWriteResponse
boolean sendWriteResponse(short connHandle, short attributeHandle, byte status)
-
sendPrepareWriteResponse
boolean sendPrepareWriteResponse(short connHandle, short attributeHandle, byte status, byte[] value, int valueSize, int offset)
-
sendExecuteWriteResponse
boolean sendExecuteWriteResponse(short connHandle, short attributeHandle, byte status)
-
sendNotification
boolean sendNotification(short connHandle, short attributeHandle, byte[] value, int valueSize, boolean confirm)
-
-