Skip to content
Permalink
Fetching contributors…
Cannot retrieve contributors at this time
40 lines (25 sloc) 1.93 KB

Room Thermostat Sample Application for Azure Blockchain Workbench

Overview 

The room thermostat scenario expresses a workflow around thermostat installation and use. In this scenario, a person will install a thermostat and indicate who is the intended user for the thermostat. The assigned user can do things such as set the target temperature and set the mode for the thermostat.

Application Roles 

Name Description
Installer A person who is responsible for installing the thermostat. 
User A person who uses the thermostat.

States 

Name Description
Created Indicates that a thermostat installation has been requested. 
InUse Indicates that the thermostat is in use. 

Workflow Details

The room thermostat is a simple workflow to demonstrate how to use the enum data type. Once the installer has installed and started the thermostat, the user can take two main actions. As a user, you can set the target temperature to a temperature you specify, or you can set the mode to one of four modes: Off, Cool, Heat, and Auto.

Application Files

RoomThermostat.json

RoomThermostat.sol

You can’t perform that action at this time.