LinkSmart Thing Publisher (LSTP) is intended to continuously expose proprietary sensor data in the OGC SensorThings format. The OGC SensorThings output is published over MQTT. The prioprietary sensor data is delivered via executables like scripts or executable binaries. The exposing and formating of the data is done by the LSTP.
Edit the conf\thing-publisher.json and configure the MQTT broker URL. The default value is pointing to a local broker. Execute the binary "thingpublisher". LSTP should be running now. More documentation can be found here: https://github.com/linksmart/thing-publisher/wiki
In the current example the mosquitto tools are used to show the funcionality of LSTP. The MQTT broker should be running and configured. All commands are started from the directory where the thingpublisher executable was executed.
Type to subscribe to sensors topic: mosquitto_sub -t "LSTP/Datastreams(Temperature)/fixed sensor" -v Deploy a LSTP Thing archive via: mosquitto_pub -t "LSTP/addthingarchive" -f ./TEST/agentarchives/temperature.tar.gz
After a while the subscribtion client will start producing output like: LSTP/Datastreams(Temperature)/fixed sensor {"result":"20.0","phenomenonTime":"2017-10-23T12:41:54Z"}
Check the vendor directory for included libraries
see LICENSE file