wiki:RepQuickStart

Version 1 (modified by s.meissner, 14 years ago) (diff)

--

REP deployment Quick Start

Software requirements

To build and run the REP example code you need to meet following requirements:

The project makes use of the Java REST framework 'restlet' by http://www.restlet.org/. The required libraries are part of the eclipse project.

run the Example REP Project

In order to run the code samples please follow the steps below:

  1. Import the eclipse project into your eclipse workspace
  2. fix missing class path errors if required (e.g. if eclipse could not find a Java Sdk)
  3. the project structure should look like this:
  1. run uk.ac.surrey.sensei.rep.test.REPTest.java

The REPTest class provides a couple of test cases. Please uncomment the sections you want to have tested. By default REPTest.java creates a REP listening on HTTP port 8185. It attaches a RAIHandler of type SensorType? for a dummy light sensor. The hard coded light value is read from the file xml/sensors/light.rdf. It can be requested by a REST GET method call on http://localhost:8185/rep/s/light.

The response is the Observation and Measurement value in XML-RDF syntax.

Attachments (7)

Download all attachments as: .zip