This directory contains code to run on the MicaZ sensors.

Talker.java is a test app which connects directly to SerialForwarder
and ommits the SensorCollection service. It is suitable for testing
of sensor code.

To run:
place this directory into $TOSROOT/apps

NesC Code
==========

Open $TOSROOT/tos/system/tos.h
find:  uint16_t TOS_LOCAL_ADDRESS = 1;
Change the value to be unique for each mote.

Physically place the Mote into the base docking station (remove the sensorboard)
Ensure all SerialForwarder instances or other applications which may be holding
COM port resources have been exited.

execute: 

make micaz install mib510./dev/ttyS0
ttyS0 = COM1

*NOTE:* Temperature code is slightly buggy. It fails to terminate after a close
query has been sent.

Java Code
=========
create the message java files:
make -f jMakefile

compile:
cd DemoWindow
javac *.java
cd ..
javac Talker.java

reinsert base station into programmer, and start the show:
java Talker

