Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ("Which Room Would you like to Trigger? nRoom 1001 or Room 1002")
- bool loopChk = true;
- do
- {
- Console.WriteLine("Which Room Would you like to Trigger? nRoom 1001 or Room 1002");
- string line = Console.ReadLine();
- if (line == "1001")
- {
- await objClient.WritePropertyAsync(fqrs[0], "Present Value", a_bOn ? "on" : "off", CancellationToken.None);
- Console.WriteLine("You have Triggered Room 1001");
- }
- else if (line == "1002")
- {
- await objClient.WritePropertyAsync(fqrs[1], "Present Value", a_bOn ? "on" : "off", CancellationToken.None);
- Console.WriteLine("You have Triggered Room 1002");
- }
- else if (line == "exit")
- {
- break;
- }
- } while (loopChk);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement