... | ... | @@ -12,13 +12,13 @@ The light sensor is component U506 (see section 2.1 of [mangOH Yellow Hardware A |
|
|
|
|
|
# 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 30 seconds, on **DEVICE/Resources** page:
|
|
|
* **light/enable**: **true**
|
|
|
* **light/period**: **120**
|
|
|
* **light/period**: **30**
|
|
|
|
|
|
# Observation
|
|
|
|
|
|
Create an observation for the light value, on the **Observations** page:
|
|
|
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**
|
... | ... | @@ -30,10 +30,18 @@ The newly created observation is added to the list of observations: |
|
|
|
|
|

|
|
|
|
|
|
# Stream
|
|
|
# Device 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 **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](https://forum.sierrawireless.com/t/renaming-a-device/18171).)
|
|
|
|
|
|
# Cloud stream
|
|
|
|
|
|
As we created an observation that sends data to a cloud stream, related stream can be dislayed on **CLOUD/Streams** page:
|
|
|
|
|
|

|
|
|
|
|
|
That's a mirror of related device stream. |
|
|
\ No newline at end of file |