Pinguino



Name read()
Examples
import hypermedia.pinguino.*;

Pinguino board;

void setup() {
    board = new Pinguino(this);
}

void draw() {
    
    byte[] response  = new byte[ 21 ];
    response  = board.read( response );       // get Pinguino's response
    
    if ( response!=null ) {
        println( str(response) );             //  bonjour Processing :)
    }
    
}

void mousePressed() {
    String greeting = "hello pinguino !";
    board.write( greeting.getBytes() );     // send greeting to Pinguino device
}



Description Retrieve the latest message from Pinguino device with an optional timeout value.
Syntax read(result);
read(result, timeout);
Parameters
result byte[] : the data list to be returned
timeout int : amount of time in milliseconds the device will try to give the data
Return None
Usage Application