wiki:RepDeveloperGuide

Version 2 (modified by zach, 14 years ago) (diff)

--

Developers Guide

Configuring the Resource Directory

By default the test REP does not publish its Resource Description to a Resource Directory. The 'testPublish' method in REPTest.java will publish the Resource Description stored in the file xml/resource-description.xml describing a dummy light sensor.

The Resource Directory to be used needs to be set in the REP class. Please overwrite following lines according to your needs:

// TODO set RESOURCE_DIRECTORY_PATH
	private static String RESOURCE_DIRECTORY_PATH; // = "http://localhost:8183/rd/";
	private static String RESOURCE_PUBLISH_PATH; // = "http://localhost:8183/rpi/";

Alternatively the RD path can be set via REP constructor method:

protected REP(String repRoot, int repPort, String RD_Path, String RPI_Path)

You can either set up your own local Resource Directory or you can use one of the preconfigured directories deployed at SENSEI partners' sites.

The path to the RD deployed at Uni Bucharest is: 'http://141.85.224.221:8184/rd' to lookup the content and 'http://141.85.224.221:8184/rpi' to publish Resource Descriptions.

A GUI to monitor the test bed at Bucharest can be accessed by http://sensei.pub.ro/gui/ There you can browse the content of the directory and you should see your Resources after successful publishing.