March 2018
Beginner to intermediate
410 pages
10h 40m
English
In the general case, some momentary values might correspond to control parameters in an actuator. To highlight this, an overload exists for the field constructors, allowing the application to signal which one of the fields is "writable", or which ones correspond to control parameters with the same name. In our actuator, we report our output value as a writable parameter, by appending a Boolean argument to the value true:
if (this.output.HasValue)
{
Fields.Add(new BooleanField(ThingReference.Empty, Now,
"Output", this.output.Value,
FieldType.Momentary, FieldQoS.AutomaticReadout, true));
}
Read now
Unlock full access