This project demonstrates a minimal application making use of Protelis.
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Type Name Latest commit message Commit time
Failed to load latest commit information.

Protelis demo application

This project demonstrates a minimal application making use of Protelis.

Protelis requires Java 8+. This project has been set up to run in Eclipse with Maven, and should be able to be directly imported and executed if you have these set up.


  • src/main/java:
  • entry point to run the demo on a simple simulated network
  • devices hosting a ProtelisVM and network interface
  • network interface for simulation, which simply records the most recent values sent to neighbors and received from neighbors.
  • utility class for numerical device identifiers
  • src/main/protelis:
  • Protelis program to be executed
  • src/test/java:
  • runs and compares output to HelloTest.txt
  • src/test/resources:
  • HelloTest.txt: expected output from running
  • pom.xml: Maven configuration of the project
  • this file

To run:

To run normally, execute "HelloMain"

In response, you should see text output matching: src/test/resources/HelloTest.txt

There is also a JUnit test "HelloTest" that runs "HelloMain" and performs this comparison automatically.

To run against local Protelis:

To run against a local (e.g., development or pre-release) version of Protelis, delete the Protelis dependency from pom.xml, then use Eclipse project properties to change the Build Path to point to your local copy or Protelis.