public void TestRelayWebsocket() { // NOTE // need running "Infrastructure\wsserver.exe" instance var states = new JObject { ["in1"] = false, ["in2"] = true, ["in3"] = false, ["in4"] = true }; RelayCommandWebsocket.Send(TargetUri, states.ToString(Formatting.None)); }
private void __resetRgbLight() { var states = new JObject { ["r"] = 255, ["g"] = 255, ["b"] = 255, ["w"] = 1023 }; var r = RelayCommandWebsocket.Send(TargetUriRgbStripes, states.ToString(Formatting.None)); if (!r.Result) { SendDebug(DebugMessage.Instance($"{r.LastError}", DebugMessageLevel.Error)); } }
private void __switchOffSteckdosen() { var states = new JObject { ["in1"] = false, ["in2"] = false, ["in3"] = false, ["in4"] = false }; var r = RelayCommandWebsocket.Send(TargetUriSteckdosen, states.ToString(Formatting.None)); if (!r.Result) { SendDebug(DebugMessage.Instance($"{r.LastError}", DebugMessageLevel.Error)); } }