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.
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.
# Heartbeat
# Preconfiguration
In Octave, display **Resources** page:
Ensure that [mangOH welcome application is disabled](settingup/Disable welcome application) and that heartbeat and developer mode are configured as described in [this page](settingup/Heartbeat and developer mode).
This guarantees that the board contacts the cloud every 60 s at least. Thus, we are sure to be able to download a new configuration to the mangOH board, even if we disable all data uploads and developer mode (see below).
The light sensor is component U506 (see section 2.1 of [mangOH Yellow Hardware Architecture Guide](http://mangoh.io/uploaded-documents/Reference/mangOH%20Yellow/Discover/HW%20Reference%20Manual/41113116%20mangOH%20Yellow%20HW%20Guide%20-%20HTML5-Responsive%20HTML5/#t=41113116_mangOH_Yellow_HW_Guide_-_HTML5%2FHardware%2FHardware.htm)).
The light sensor is component U506 (see section 2.1 of [mangOH Yellow Hardware Architecture Guide](http://mangoh.io/uploaded-documents/Reference/mangOH%20Yellow/Discover/HW%20Reference%20Manual/41113116%20mangOH%20Yellow%20HW%20Guide%20-%20HTML5-Responsive%20HTML5/#t=41113116_mangOH_Yellow_HW_Guide_-_HTML5%2FHardware%2FHardware.htm)).
## Resource configuration
# Resource configuration
Now, let's configure light sensor handling in such a way that its value is sent to the cloud every two minutes:
Now, let's configure light sensor handling in such a way that its value is sent to the cloud every two minutes:
***light/enable**: **true**
***light/enable**: **true**
***light/period**: **120**
***light/period**: **120**
## Observation
# Observation
Create an observation for the light value, on the **Observations** page:
Create an observation for the light value, on the **Observations** page:
* click on **ADD OBSERVATION...**
* click on **ADD OBSERVATION...**
...
@@ -49,7 +30,7 @@ The newly created observation is added to the list of observations:
...
@@ -49,7 +30,7 @@ The newly created observation is added to the list of observations: