Hi,
 We want to connect to a remote server from a java program using moteIf and
we don't want to use the environment variable for setting the socket address.

Here is the code (it doesn't print anything, which we don't know why ?) :

 public static void main(String[] args) throws Exception {
   PacketSource rawSource = BuildSource.makeSF( "bla.bla", 12345);
   PhoenixSource reader = BuildSource.makePhoenix(rawSource, null);
   reader.start();
   MoteIF moteif = new MoteIF(reader);
   reader.awaitStartup();
   moteif.registerListener(new OurDataMsg(), new MessageListener(){
      public void messageReceived(int arg0, Message arg1) {
           System.out.println("Received.");
      }});
    }

Any ideas,suggestions :-)

Cheers,
AliS

_______________________________________________
Tinyos-help mailing list
Tinyos-help@Millennium.Berkeley.EDU
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Reply via email to