Up: Configuration Examples   [Contents]


5.1 Dummy (examples/dummy/dummy.stca.xml)

The dummy plugin is a timer-driven mock used to exercise the D-Bus API (and optional HTTP). It emits temperature, humidity, and online as read-only, and setpoint as read-write. The plugin option interval-ms sets the emit period (default 5000).

$ LD_LIBRARY_PATH=lib/.libs \
    src/starter-configurable-adapter \
      -c examples/dummy/dummy.stca.xml \
      -p plugins/dummy/.libs

With HTTP enabled in XML or on the command line:

$ curl http://127.0.0.1:18081/data
$ curl -X PUT http://127.0.0.1:18081/data/setpoint \
    -d '22.5' -H 'Content-Type: application/json'
# temperature is read-only → 403

On the plant side, an STCS peer typically uses adapter-transport toward the adapter’s listen address/port, then json-reader paths such as $['online'].value.