|
NXT C++ Bluetooth Library | ||||||
FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Connection | +--Bluetoothin bluetooth.h
Class for Bluetooth communication
Constructor Summary | |
Bluetooth()
Constructor for Bluetooth connection |
|
~Bluetooth()
|
Method Summary | |
void |
connect( unsigned int comport )
Connect to the NXT |
void |
disconnect()
Disconnect from the NXT |
void |
flush()
Flush the input and output buffer |
Connection_type |
get_type()
Get the connection type |
void |
receive( unsigned char* buffer, unsigned int length )
Receive a byte string |
void |
send( unsigned char* buffer, unsigned int num_bytes )
Send a byte string |
Methods inherited from class Connection |
send, connect, connect, disconnect, receive, flush, get_type |
Constructor Detail |
public Bluetooth();
public ~Bluetooth();
Method Detail |
public void connect( unsigned int comport );
comport
- [specify the comport that is to used for the connection between the NXT and PC]public void disconnect();
public void flush();
public Connection_type get_type();
public void receive( unsigned char* buffer, unsigned int length );
*buffer
- [a pointer to a buffer that can hold the received bytes]
length
- [the number of bytes to receive]public void send( unsigned char* buffer, unsigned int num_bytes );
*buffer
- [a pointer to a buffer that can hold the bytes to send]
num_bytes
- [the number of bytes to send]
|
NXT C++ Bluetooth Library | ||||||
FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |