March 2018
Beginner to intermediate
410 pages
10h 40m
English
Apart from editable properties of the node, you can also define a set of readable properties named displayable parameters. These displayable parameters are displayed together with the node, whenever the node is presented in a detailed list view. For our sensor, we simply display the current sensor values:
public async Task<IEnumerable<Parameter>> GetDisplayableParametersAsync(Language Language, RequestOrigin Caller) { LinkedList<Parameter> Parameters = new LinkedList<Parameter>(); if (App.Instance.Light.HasValue) Parameters.AddLast(new DoubleParameter("Light", await Language.GetStringAsync( typeof(MeteringTopology), 2, "Light (%)"), App.Instance.Light.Value)); if (App.Instance.Motion.HasValue) Parameters.AddLast(new ...Read now
Unlock full access