March 2018
Beginner to intermediate
410 pages
10h 40m
English
Our actuator node will be defined in much the same way as the sensor node. The key difference is that it will implement the IActuator interface as well as the ISensor interface:
public class ActuatorNode : ThingReference, ISensor, IActuator
{
public const string NodeID = "Actuator";
public ActuatorNode()
: base(NodeID, MeteringTopology.ID, string.Empty)
{
}
We also need to explicitly state that it is always controllable:
public bool IsReadable => true; public bool IsControllable => true;
Read now
Unlock full access