O'Reilly logo

Getting Started with the Internet of Things by Cuno Pfister

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

URIs of Manipulated Variables

By convention, manipulated variables in this book are called /name/target; in this case /led/target:

http://192.168.5.100/led/target

In more complicated applications than this example here, it may not be certain that putting a target value will really have the desired physical effect. For example, if you send a PUT request to a manipulated variable for a valve, with “closed” as the desired state, there may be mechanical reasons why this desired state is not achieved (e.g., the valve may have become mechanically blocked). In such situations, it might make sense to additionally provide a measured variable (sensor) for the valve. This would result in two separate resources: one for the actuator and one for the sensor: ...

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