Our aim here is to use Octave to configure the mangOH board so that it uploads its light sensor value to the cloud every two minutes.
The light sensor is component U506 (see section 2.1 of mangOH Yellow Hardware Architecture Guide).
Now, let's configure light sensor handling in such a way that its value is sent to the cloud every 30 seconds, on DEVICE/Resources page:
- light/enable: true
- light/period: 30
Create an observation for the light value, on the DEVICE/Observations page:
- click on ADD OBSERVATION...
- for Observed resource, select /light/value/
- for Observation name, you can keep the proposed default value, light
- for Send events to, select Cloud Stream
- enter a description
- click on SAVE
The newly created observation is added to the list of observations:
Go to the DEVICE/Streams page. Click on the light stream that has been automatically created. All received values are displayed there:
(Don't pay attention to the strange name that appears in the stream path. I renamed my device, but the path kept the original name.)
As we created an observation that sends data to a cloud stream, related stream can be dislayed on CLOUD/Streams page as well:
That's a mirror of related device stream.