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 Measured Variables

How a request URI for a measured variable looks is entirely up to you. By convention, I will call measured variables /name/actual—in this case, /voltage/actual. However, you can use any URI as long as you use only ASCII letters, digits, and the characters /, ?, #, [, ], @, !, $, &, ', (, ), *, +, ,, ;, and =. For example, the relative URI /root/sensors/analog/1 would be a perfectly legitimate alternative and would look like this:

http://192.168.5.100/root/sensors/analog/1

Note

Just because you set up your server to reply to a request with a long request URI doesn’t mean you have to support resources for such URIs as the following, which exist all along the path:

http://192.168.5.100/root/sensors/analog http://192.168.5.100/root/sensors ...

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