SensorML 2.0 Examples

Internet of Things - Simple Sensor

SensorML supports the Internet of Things (IoT) and Web of Things (WoT) by providing the ability to describe a sensor (or other online processing component) and to provide a link to the real-time values coming from this component. The components and encoding of this data stream are fully described in the SensorML description, allowing one to automatically parse the results with a SWE Common Data Parser (including both ASCII and binary data), or in many cases with a simple ASCII reader. Describing a data stream into or out of a process (or sensor/actuator) is accomplished by having the input or output be of type DataInterface. The DataInterface element allows one to describe the DataStream, as well as provides for an optional interface description.

The example below describes a sensor with a simple data stream consisting of temperature. The data is described in the DataStream element. The optional interface description is not required and thus omitted. The data themselves can be accessed through the URL provided by the xlink:href attribute in the swe:values element. Accessing this URL would return either the latest value(s) or open up an html stream of real-time values.

 

A stream of values from this sensors might look like this: 28.6 28.7 28.7 28.8 28.9