...
Code Block | ||||
---|---|---|---|---|
| ||||
ruleset a16x55 {
meta {
name "thermostat module"
shares get_mode, get_temperature
}
global {
get_mode = function() {
...
}
get_temperature = function(room) {
...
}
} |
You could call the get_temperature()
function, supplying bedroom
as the parameter with the following request:
...