Code: Alles auswählen
ERROR: ScriptRuntimeError: object Device = dom.GetObject(''); string DP = Device.HssType(); string oldValue = Device.Value(); if (DP == "LEVEL") { var setValue = 0; ! WriteLine("LEVEL"); if (setValue > 1) { ! WriteLine("Need to convert"); real newValue = setValue.ToString().ToFloat() / 100; ! WriteLine(newValue); Device.State(newValue); } else { ! WriteLine("No conversion needed"); Device.State('0'); } } else { Device.State('0'); } Write("{"); Write('"Status": "success"'); Write("}"); [ExecError():iseESPexec.cpp:12797]