Things/SmartTempThing
Appearance
Unit Description

- Name: Smart Temperature Thing
- Logo: tbd
- Hardware: ESP8266 Microcontroller + DS18B20 (digital Thermometer)
- Software: NodeMCU firmware with Lua environment
- WoT functions:
- Role: Act as server (Temperature measurement) and client (search vote server and initiate votes)
- Protocols: CoAP, HTTP
- Encodings: JSON, EXI4JSON
- Discovery: Register its Thing Description (TD) at the TD repository during startup
- Application logic: Provides the temperature measurement as CoAP and HTTP resource (/temp). A threshold resource is provided (/thr) to set the threshold for 'too hot' and 'too cold' respectively.
- Application description: The Smart Temperature Thing measures the current temperature value. If a particular kind of threshold is meet (e.g., temeperature is > 30°C) the Thing initate a semantic search at TD repository via a SPARQL query to report this circumstance 'too hot' to another Thing. If such a Thing exist, the TD repository answers the query with the relevant TD(s) which contains all information to initate a vote to such a 'Voter' Thing.