example.OpenSerial Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of panstamp Show documentation
Show all versions of panstamp Show documentation
A Java library for working with a network of panStamp Arduino devices
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