Write Signal

 

        Write a signal into the Wiring Cloud.

 

Variations

          Set the value of the signal. Every time this block is executed it will override the old value. 
          Put the value of the signal into a queue. Every time this block is executed it will add a value to the signal queue. The queue is FIFO (first in first out). Using the read block with "peek" or "pop" you can get values from the queue.

 

Parameters

ID         ID of the device.
name         Name of the signal.
value         Value of the signal

 

Examples

         Here you have an example that will "turn on the ac unit". Basically it will set the AC signal to ON. We assume there is a hardware capable to read the signal and turn the AC unit on or off based on the value of this signal.

 

Read Signal

 

 

        Read a signal from the Wiring Cloud.

 

Variations

          Read a signal without the time information.
          Extract a signal from a queue. No time information is provided in the result. 
          Peek the first signal from a queue. No time information is provided in the result. 
          Read a signal with the time information.
          Extract a signal from a queue. The time information is provided in the result. 
          Peek the first signal from a queue. Time information is provided in the result. 

 

Parameters

ID         ID of the device.
name         Name of the signal.

 

Examples

         Here you have an example that will "read the temperature".