|
Sun SPOT Quick Start Tutorial
Changing the Air Text DemoThe Air Text demo is easy to change. First, copy the existing project. Right-click on "AirText" and select "Copy Project" from the menu. A dialog box will display. Enter a new name for your version of the project: Make your new project the current project by right-clicking on the project name and selecting "Set Main Project". In the Project window, click on the plus to the left of the project name to expand the project node. Now, expand the "src" node, then the "org.sunspotworld.demo" package. Select "AirTextDemo.java" from the files displayed. Open the file, either double-clicking on it or right-clicking on it and selecting "Open."
The source code for Now go through the steps previously outlined to deploy and run the new code. When you deploy, the system automatically saves and compiles your changes. Unplug the Sun SPOT from the USB cable. Now move it back and forth in the air and see if your changes have made it onto the Sun SPOT and are running. Congratulations! You have mastered the "Hello, world" application of Sun SPOTs! Now we would like to show you how the Sun SPOT basestation can be used to connect to the free-range Sun SPOTs. Next: Basestation in Action |
||||||||||||||||