UDPServer_LED/src/com/eh7n/f1telemetry/F12018TelemetryUDPServer.java
/**
	 * Main class in case you want to run the server independently. Uses defaults
	 * for bind address and port, and just logs the incoming packets as a JSON
	 * object to the location defined in the logback config
	 * 
	 * @param args
	 * @throws IOException
	 */
Main class in case you want to run the server independently. Uses defaults
for bind address and port, and just logs the incoming packets as a JSON
object to the location defined in the logback config

@param args
@throws IOException
Main class in case you want to run the server independently . Uses defaults for bind address and port and just logs the incoming packets as a JSON object to the location defined in the logback config @param args @throws IOException
public static void main(String[] args) throws IOException {
		F12018TelemetryUDPServer.create()
							.bindTo("0.0.0.0")
							.onPort(20777)
							.consumeWith((p) -> {
									log.trace(p.toJSON());
								})
							.start();
	}
public static void main ( String [ ] args ) throws IOException { F12018TelemetryUDPServer . create ( ) . bindTo ( "0.0.0.0" ) . onPort ( 20777 ) . consumeWith ( ( p ) -> { log . trace ( p . toJSON ( ) ) ; } ) . start ( ) ; }
Main class in case you want to run the server independently.
Main class in case you want to run the server independently .
// toJSON is a string //json = ""; //json = mapper.writeValueAsString(this);//this is packet //it just print the packet(because it needs to be converted to string first)