tree: 735944f5d998c15c8eba934b09ae79d495569e6e [path history] [tgz]
  1. src/
  2. pom.xml
  3. README.md
  4. run-sample.sh
scenarios/README.md

edgent.IoTFRangeSensor

See the Recipe this was created for here. If that link doesn't work, try here.

See the README.md in the samples root directory for information on building the samples.

The build generated uber jar contains all of the dependent Edgent jars and their transitive dependencies.

The desired sample can be run using the run-sample.sh script. e.g.,

cd scenarios
./run-sample.sh IotpRangeSensor quickstart true true  # see below

For usage information:

./run-sample.sh
./run-sample.sh --list

If you want to run a sample from the standard jar there are two options: a) get a local copy of all of the Edgent jars and their dependencies. Form a CLASSPATH to the jars and run the sample's main class. The get-edgent-jars.sh script can be used to get the jars from a maven repository (local or remote). b) create an application package bundle. The bundle includes the sample(s) jar and a copy of all of the dependent Edgent jars and their dependencies. The package-app.sh script can be used to create this bundle. The package-app.sh script also creates a run-app.sh script. The run-app.sh script configures the CLASSPATH and runs the main class.

Requirements:

./run-sample.sh IotpRangeSensor <device cfg file> <simulatedSensor?> <simulatedLED?>

To run with a device.cfg file, range sensor, and LED:

./run-sample.sh IotpRangeSensor device.cfg false false

To run in fully simulated mode (no sensors and using IoTF quickstart):

./run-sample.sh IotpRangeSensor quickstart true true