pt.citar.diablu.nxt.protocol
Interface NXTCommChannel
- All Known Implementing Classes:
- NXTCommBluetoothSerialChannelJSSC, NXTCommBluetoothSerialChannelRXTX
public interface NXTCommChannel
- Author:
- Jorge Cardoso
openChannel
void openChannel(Object channel)
throws Exception
- Throws:
Exception
closeChannel
void closeChannel()
throws Exception
- Throws:
Exception
sendCommand
NXTResponse sendCommand(NXTCommand command)
throws IOException
- Throws:
IOException
read
int read()
throws RuntimeException
- Throws:
RuntimeException
read
int read(byte[] buffer)
throws RuntimeException
- Throws:
RuntimeException
write
void write(byte[] buffer)
throws RuntimeException
- Throws:
RuntimeException
write
void write(byte b)
throws RuntimeException
- Throws:
RuntimeException
flush
void flush()
Processing library NXTComm by Jorge C. S. Cardoso. (c) 2014