public interface Peripheral
| Modifier and Type | Method and Description |
|---|---|
String |
getName()
Returns the peripheral name.
|
AsynchronousByteChannel |
newAsynchronousChannel(PeripheralChannelGroup group)
Returns a new AsynchronousChannel for communicating with the peripheral.
|
AsynchronousByteChannel |
newAsynchronousChannel(PeripheralChannelGroup group,
long timeout,
TimeUnit unit)
Returns a new AsynchronousChannel for communicating with the peripheral.
|
String getName()
AsynchronousByteChannel newAsynchronousChannel(PeripheralChannelGroup group) throws PeripheralNotFoundException, PeripheralInUseException
group - the channel groupPeripheralNotFoundException - if the comport does not existPeripheralInUseException - if the peripheral is locked by another processNullPointerException - if group is nullAsynchronousByteChannel newAsynchronousChannel(PeripheralChannelGroup group, long timeout, TimeUnit unit) throws PeripheralNotFoundException, PeripheralInUseException
group - the channel grouptimeout - the minimum amount of time to wait if the peripheral is locked by another
process before giving upunit - the unit of timeoutPeripheralNotFoundException - if the comport does not existPeripheralInUseException - if the peripheral is locked by another processNullPointerException - if group is nullCopyright © 2012. All Rights Reserved.