|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface IBUGBeePacket
An interface to the BUGbee packet connection, for sending data to, and receiving data, from other nodes in the PAN.
| Field Summary | |
|---|---|
static int |
MSG_DONTWAIT
Flag to indicate that the call should not wait for data if none is already available. |
static int |
MSG_PEEK
Flag to indicate that the incoming data should not be removed from the queue. |
| Method Summary | |
|---|---|
int |
read(byte[] buf,
int len,
int flags)
Read data coming in from the ZigBee PAN. |
int |
write(byte[] buf,
int len,
int flags)
Send out a data packet. |
| Field Detail |
|---|
static final int MSG_PEEK
static final int MSG_DONTWAIT
| Method Detail |
|---|
int write(byte[] buf,
int len,
int flags)
throws java.io.IOException
buf - the buffer containing the data to be sentlen - the number of bytes to send from bufflags -
java.io.IOException
int read(byte[] buf,
int len,
int flags)
throws java.io.IOException
IBUGBeeControl.registerAppRequest(byte, short, short, byte, short[], short[]) or
IBUGBeeControl.registerAFRequest(byte, short, short, byte, short[], short[]).
buf - the buffer to read data intolen - the maximum amount of data to readflags - MSG_PEEK or MSG_DONTWAIT
java.io.IOException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||