Set

        Set the values for a set of signals.

http(s)://www.ic2pro.com/Wire/connector/set?id=<device_id>&<signal_name>=<signal_value> ...&<signal_name>=<signal_value>

 

Field Description
device_id Device ID. This is an ID assigned to a specific physical device. We recommend you to use GUID. They usually look like: e94890a7-ebb6-4203-975b-30eb0f529efd
signal_name Signal name. This is a name to identify an output of a physical device. For example if the device is a temperature sensor then signal name could be: TEMPERATURE
signal_value Signal value. This is the value for the signal. Usually the measurement unit is implied. For example a temperature sensor could have the signal value: 23.5 for a 23,5 degrees Celsius.

 

Example:

https://www.ic2pro.com/Wire/connector/set?id=e94890a7-ebb6-4203-975b-30eb0f529efd&TEMPERATURE=23.5

 

Assuming that a sensor could provide temperature and humidity then the request could be:

https://www.ic2pro.com/Wire/connector/set?id=e94890a7-ebb6-4203-975b-30eb0f529efd&TEMPERATURE=23.5&HUMIDITY=43

 

Push

        Push in the queue the values for a set of signals. The Wiring Cloud allows the user to create queues to buffer data for consumption using this instruction. The queues are FIFO (first in first out). The picture below illustrates how push - pop work on the queue:

http(s)://www.ic2pro.com/Wire/connector/push?id=<device_id>&<signal_name>=<signal_value> ...&<signal_name>=<signal_value>

 

Field Description
device_id Device ID. This is an ID assigned to a specific physical device. We recommend you to use GUID. They usually look like: e94890a7-ebb6-4203-975b-30eb0f529efd
signal_name Signal name. This is a name to identify an output of a physical device. For example if the device is a temperature sensor then signal name could be: TEMPERATURE
signal_value Signal value. This is the value for the signal. Usually the measurement unit is implied. For example a temperature sensor could have the signal value: 23.5 for 23.5 degrees Celsius

 

Example:

https://www.ic2pro.com/Wire/connector/push?id=e94890a7-ebb6-4203-975b-30eb0f529efd&TEMPERATURE=23.5

 

Assuming that a sensor could provide temperature and humidity then the request could be:

https://www.ic2pro.com/Wire/connector/push?id=e94890a7-ebb6-4203-975b-30eb0f529efd&TEMPERATURE=23.5&HUMIDITY=43