O'Reilly logo

Mastering Internet of Things by Peter Waher

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Providing displayable parameters

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required