Sun SPOT API
Green Release  


com.sun.spot.peripheral
Interface ISerialPipe

All Known Implementing Classes:
SerialPipe

public interface ISerialPipe

Interface to a pipe for sending byte arrays between host and spot


Method Summary
 void receive(byte[] in)
          Receive a byte array of data
 void send(byte[] out)
          Send a byte array of data
 

Method Detail

receive

void receive(byte[] in)
             throws IOException
Receive a byte array of data

Parameters:
in - byte array in which to store received data
Throws:
IOException - to indicate framing or overrun errors

send

void send(byte[] out)
          throws IOException
Send a byte array of data

Parameters:
out - byte array holding data to be sent
Throws:
IOException

Sun SPOT API
Green Release  


Copyright © 2006 Sun Microsystems, Inc. All Rights Reserved.