Controlling your device

In the same way, you can navigate to your activator device and press the Discover button. You should see your Output resource. As with the resources on the sensor, you can read the resource and subscribe to it by pressing the GET and Observe buttons respectively. But you can also control it. You do that by writing the value you want to send to the device in the Outgoing tab in the central portion of the browser window. Try writing 1 here, and then press the POST button. Then write 0 and press POST. You should see how the output toggles. You can also see the status code of the action in the status area, as well as the round-trip time (RTT) just below the buttons. If you're observing the resource at the same time, you'll get notified of the changes as well. You can also check the corresponding checkbox in the app window, and see how that generates notifications as well:

Controlling the actuator
..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
3.129.22.135