|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object Rememberall.Serial
public class Serial
Uses the blue cove open source java bluetooth stack wrapper to hide the details of establishing an RFCOMM connection given a previously discovered ServiceRecord.
Constructor Summary | |
---|---|
Serial(java.lang.String url)
Constructs a serial port given an appropriate device url for an SPP service on the Rememberall device. |
Method Summary | |
---|---|
void |
close()
Closes the currently open serial connection. |
void |
sendSchedule(Slab[] led)
Sends a schedule consisting of data packets and granularity and length. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Serial(java.lang.String url) throws java.io.IOException
java.io.IOException
- If the connection or any of its associated stream operations
fail. Sockets may be left open -- please call close if you handle this exception.Method Detail |
---|
public void close() throws java.io.IOException
java.io.IOException
public void sendSchedule(Slab[] led) throws java.io.IOException
led0
- The slab (schedule) for the first ledled1
- The slab (schedule) for the second led
java.io.IOException
- an I/O error occured or the port is not open.
java.lang.IllegalArgumentException
- there is a granularity, time span or length
mismatch in the slabs provided. Currently the LEDs can only be programmed
to the same granularity.
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |