package edu.hypower.gatech.phidget.comm;

import java.io.*;
import java.net.*;
import java.util.concurrent.*;
import java.util.*;
/**
 * The client side of the PhidgetSensorNode.
 * @author pjmartin
 *
 */
public class SensorNodeClient 
{
    public static void main(String[] args) throws Exception
    {
        // Loopback address: "127.0.0.1" need the ip address to connect
        // with server, the port number is 1234
        Socket socket = new Socket("127.0.0.1", 1234);
        
        PrintWriter o = new PrintWriter(socket.getOutputStream(), true);
        
        // Jackson Library to pass strings
        for(Integer i = 0; i < 10; i++)
        {
            o.println(i.toString());
            Thread.sleep(899);
        }

        o.close();
        socket.close();
    }
}

@@ -39,96 +39,8 @@
 m;%0A%0A
-import java.io.*;%0Aimport java.net.*;%0Aimport java.util.concurrent.*;%0Aimport java.util.*;%0A
 /**%0A
@@ -145,562 +145,9 @@
 ent 
-%0A
 %7B%0A
-    public static void main(String%5B%5D args) throws Exception%0A    %7B%0A        // Loopback address: %22127.0.0.1%22 need the ip address to connect%0A        // with server, the port number is 1234%0A        Socket socket = new Socket(%22127.0.0.1%22, 1234);%0A        %0A        PrintWriter o = new PrintWriter(socket.getOutputStream(), true);%0A        %0A        // Jackson Library to pass strings%0A        for(Integer i = 0; i %3C 10; i++)%0A        %7B%0A            o.println(i.toString());%0A            Thread.sleep(899);%0A        %7D%0A%0A        o.close();%0A        socket.close();%0A    %7D
 %0A%7D%0A

Add file SensorNodeClient.java to Sam