|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
This interface defines the API a client app uses to access the IR stack at LMP level.
| Method Summary | |
void |
connectConfirm(byte[] data)
Confirm the requested connection. |
void |
connectionRequest(byte rLsap)
Request a connection to the remote lsap. |
void |
connectionRequest(byte rLsap,
byte[] data)
Request a connection to the remote lsap. |
boolean |
dataRequest(byte[] data)
Queue data for tranmission to remote station. |
boolean |
discoveryRequest(DiscoveryCallbackInterface dCb)
Start discovery cycle to see what devices are within range |
int |
getMaxDataSize()
get max size of payload |
int |
getPacketSize()
Get packet size supported by remote device See {#link @getMaxDataSize} for max payload size |
void |
linkConnectRequest(int address)
Initiate a link at LAP level to the given address |
void |
linkDisconnectRequest()
Request a Link disconnection (disconnects all IR connections) |
| Method Detail |
public void linkConnectRequest(int address)
public boolean discoveryRequest(DiscoveryCallbackInterface dCb)
dCb - DiscoveryCallbackInterface instance to report back to.public void connectConfirm(byte[] data)
data - Data to be transferred in confirmation message, null
in case no additional data is neededpublic boolean dataRequest(byte[] data)
data - Byte array of data to be tranmittedpublic void connectionRequest(byte rLsap)
lsap - Remote lsap to connect to.
public void connectionRequest(byte rLsap,
byte[] data)
lsap - Remote lsap to connect to.data - Data to be send with requestpublic void linkDisconnectRequest()
public int getPacketSize()
public int getMaxDataSize()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||