... | @@ -2,40 +2,21 @@ |
... | @@ -2,40 +2,21 @@ |
|
|
|
|
|
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).
|
|
|
|
|
|
![light1-resources](uploads/9422750ba71f2b4c7c4e4e8a95c75eae/light1-resources.png)
|
|
# Sensor
|
|
|
|
|
|
Set following resources:
|
|
|
|
* **cloudInterface/store_forward/heartbeat_on_empty**: **true**
|
|
|
|
* **cloudInterface/store_forward/period**: **60**
|
|
|
|
|
|
|
|
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).
|
|
|
|
|
|
|
|
[Reference](https://docs.octave.dev/guides/control_edge_data/control_device_comm/#configuring-and-understanding-heartbeat)
|
|
|
|
|
|
|
|
# Developer mode
|
|
|
|
|
|
|
|
To check system behaviour in real conditions, we disable developer mode:
|
|
|
|
* **cloudInterface/developer_mode/enable**: **false**
|
|
|
|
|
|
|
|
[Reference](https://docs.octave.dev/guides/control_edge_data/control_device_comm/#configuring-developer-mode)
|
|
|
|
|
|
|
|
# Light
|
|
|
|
|
|
|
|
## Sensor
|
|
|
|
|
|
|
|
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: |
|
|
|
|
|
![light1-observation](uploads/ee388e7c6e4d3816ebee50f7b3a32d30/light1-observation.png)
|
|
![light1-observation](uploads/ee388e7c6e4d3816ebee50f7b3a32d30/light1-observation.png)
|
|
|
|
|
|
## Stream
|
|
# Stream
|
|
|
|
|
|
Go to the **Streams** page. Click on the **light** stream that has been automatically created. All received values are displayed there:
|
|
Go to the **Streams** page. Click on the **light** stream that has been automatically created. All received values are displayed there:
|
|
|
|
|
... | | ... | |