public class StreamSensorDataFile extends java.lang.Object
|Constructor and Description|
|Modifier and Type||Method and Description|
Restream the data in a given log file.
Program to stream a given log file to a server The program simulates measurements from a Sensor Fusion app running on a smartphone, based on measurements collected in a log file from the same app.
public static void broadcastFile(java.io.File fname, java.lang.String ip, int port) throws java.net.UnknownHostException, java.io.IOException
fname- The path of the log file.
ip- The IP address to which the data should be streamed.
port- The port on the server to use.
java.net.UnknownHostException- Throws a UnknownHostException when no connection to the server can be established.
java.io.IOException- Throws an IOException in case of I/O errors, such as inability to read the given log file.
public static void main(java.lang.String args)
args- The input has the following form (when called from the command line): StreamSensorDataFile [--ip <127.0.0.1>] [--port <3400>] [--] logfile]