This is an Arrowhead Drawbridge project, that is a part of the Thesis WOT ARROWHEAD DRAWBRIDGE: BRIDGING HETEROGENIC IOT-BASED SYSTEMS. It consists of wot_emulator and arrowhead_drawbridge which both run on Node.js.
This program emulates different IoT devices creating Web Things by Eclipse Thingweb node-wot framework and register them as a service on Eclipse Arrowhead framework.
How to run the program in the terminal by following CLI commands:
- type the path to the directory where is wot_emulator:
cd home/yourusername/path/to/src/wot_emulator - enter
npm installto installpackage.json - run
npm run start
The devices with their locations and values can be defined in devices.json file.
This program implements a rule-based engine that can connect IoT-based systems.
How to run the program in the terminal by following CLI commands:
- type the path to the directory where is arrowhead_drawbridge:
cd home/yourusername/path/to/src/arrowhead_drawbridge - select the pull or push mode by setting true or false and define pullInterval in milliseconds in the file
config.json - enter
npm installto installpackage.json - run
npm run start
The rules are in the descriptors directory.
How to test the processes:
- set true in test and define interval in milliseconds in the file
config.jsonthat is located in thewot_emulatordirectory. - if there is selected pull mode, first run wot_emulator and then arrowhead_drawbridge.
- pull mode requires setting true in file
config.jsonthat is located in thewot_emulatordirectory. First execute arrowhead_drawbridge and then wot_emulator.