Add support for accessing the "set-outside-air-temp-degc" function from
the property/telnet interface.
This commit is contained in:
parent
6e65814975
commit
0d233c0ac3
1 changed files with 9 additions and 1 deletions
|
@ -332,9 +332,17 @@ PropsChannel::foundTerminator()
|
|||
= args.getNode("subsystem", i-2, true);
|
||||
node->setStringValue( tokens[i].c_str() );
|
||||
}
|
||||
} else if ( tokens[1] == "set-outside-air-temp-degc" ) {
|
||||
for ( unsigned int i = 2; i < tokens.size(); ++i ) {
|
||||
cout << "props: set-oat command = " << tokens[i]
|
||||
<< endl;
|
||||
SGPropertyNode *node
|
||||
= args.getNode("temp-degc", i-2, true);
|
||||
node->setStringValue( tokens[i].c_str() );
|
||||
}
|
||||
} else if ( tokens[1] == "timeofday" ) {
|
||||
for ( unsigned int i = 2; i < tokens.size(); ++i ) {
|
||||
cout << "props: adding subsystem = " << tokens[i]
|
||||
cout << "props: time of day command = " << tokens[i]
|
||||
<< endl;
|
||||
SGPropertyNode *node
|
||||
= args.getNode("timeofday", i-2, true);
|
||||
|
|
Loading…
Reference in a new issue