diff --git a/docker/seed-handshake-demo.sh b/docker/seed-handshake-demo.sh index de9ab35a..48b6529f 100755 --- a/docker/seed-handshake-demo.sh +++ b/docker/seed-handshake-demo.sh @@ -47,8 +47,8 @@ read -r -d '' HANDSHAKE_CODE <<'CS' || true // for Complete=true. Run this twice: the second run is the one the plain overload got wrong. var values = new Dictionary { ["Payload"] = 42.5 }; var hs = await Attributes.WriteBatchAndWaitAsync( - values, "Trigger", true, "Complete", true, TimeSpan.FromSeconds(20), - "Complete", false, TimeSpan.FromSeconds(10)); + values, "Trigger", true, "Complete", true, System.TimeSpan.FromSeconds(20), + "Complete", false, System.TimeSpan.FromSeconds(10)); Log.Info($"handshake matched={hs.Matched} phase={hs.Phase} timedOut={hs.TimedOut} resetFailed={hs.ResetFailed}"); return new { Matched = hs.Matched, Phase = hs.Phase.ToString(), TimedOut = hs.TimedOut, ResetFailed = hs.ResetFailed, Error = hs.ErrorMessage ?? "" }; CS @@ -63,7 +63,7 @@ read -r -d '' DEVICE_CODE <<'CS' || true // write re-triggers this script, which returns at the guard. var t = await Attributes.GetAsync("Trigger"); var ts = t?.ToString(); -if (!((t is bool b && b) || ts == "1" || string.Equals(ts, "true", StringComparison.OrdinalIgnoreCase))) return null; +if (!((t is bool b && b) || ts == "1" || string.Equals(ts, "true", System.StringComparison.OrdinalIgnoreCase))) return null; await Attributes.SetAsync("Complete", true); await Attributes.SetAsync("Trigger", false); return null;