All Downloads are FREE. Search and download functionalities are using the official Maven repository.

example.OpenSerial Maven / Gradle / Ivy

The newest version!
package example;

import me.legrange.panstamp.Network;

/**
 * Simple example: Open a gateway for a serial connected network.
 * @since 1.0
 * @author Gideon le Grange https://github.com/GideonLeGrange
 */
public class OpenSerial {
    
    public static void main(String...args) throws Exception {
        Network nw = Network.openSerial("/dev/ttyUSB0", 38400);
        // Do things with the network 
        // close when done 
        nw.close();
        
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy