CONFIDENTIAL PROPERTY OF IADEA

IAdea WDB Emulator

This sample code demonstrates the functionality of the IAdea WDB Framework. It must be hosted on a web server before running.

The code displays the output of the WDB Emulator. Six desks are shown, each equipped with a WDB device (displayed as a white square surrounded by indicator lights). Clicking on the device triggers a TAP event which changes the state of the device. The behavior of the device is implemented in Javascript and run as a Web Worker.

The sample worker instructs the WDB to alternate between the following states when user taps the device.

Presence is toggled when user clicks on the semi-circle presenting a seat. Note that after the seat becomes empty, it takes about 30 seconds for the system to decide that the desk is no longer occupied. This filter compensates for intrinsic properties of a motion-based PIR sensor.

To implement the behavior for your desk booking solution, modify the sample.js code and connect to your backend system via AJAX code. See source code for detailed documentation on the API.