Package com.pi4j.io.serial

Examples of com.pi4j.io.serial.SerialDataListener


        // create an instance of the serial communications class
        final Serial serial = SerialFactory.createInstance();

        // create and register the serial data listener
        serial.addListener(new SerialDataListener() {
            @Override
            public void dataReceived(SerialDataEvent event) {
                // print out the data received to the console
                String v = event.getData();
                //System.out.print(v);
View Full Code Here

TOP

Related Classes of com.pi4j.io.serial.SerialDataListener

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.