Get

        Get the values for a set of signals.

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

 

Field Description
device_id Device ID. This is an ID assigned to a specific physical device. We recommend you to use GUID. Example: e94890a7-ebb6-4203-975b-30eb0f529efd
signal_name Signal name. This is a name to identify an input of a physical device. For example if the device is a thermostat then the signal name could be: THRESHOLD corresponding to an input to set the threshold for the temperature

 

Example:

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

 

Response

THRESHOLD,23.5

 

Assuming that a thermostat needs to read the threshold for temperature and the fan state then the request could be:

https://www.ic2pro.com/Wire/connector/get?id=e94890a7-ebb6-4203-975b-30eb0f529efd&THRESHOLD&FAN

 

Response

THRESHOLD,23.5

FAN,ON

 

Pop

        Extract values from the queues for a set of signals. The Wiring Cloud allows the user to consume buffered data from queues using this instruction. The queues are FIFO (first in first out). The picture below illustrates how push - pop works on the queue:

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

 

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 input of a physical device. For example if the device is a thermostat then the signal name could be: THRESHOLD corresponding to an input to set the threshold for the temperature

 

Example:

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

 

Response

THRESHOLD,23.5

 

Assuming that a thermostat needs to read the threshold for temperature and the fan state then the request could be:

https://www.ic2pro.com/Wire/connector/pop?id=e94890a7-ebb6-4203-975b-30eb0f529efd&THRESHOLD&FAN

 

Response

THRESHOLD,23.5

FAN,ON

 

Peek

        Read values from the queues for a set of signals without consuming the values from the queue. The Wiring Cloud allows the user to peek the head of the buffered data from queues using this instruction. The queues are FIFO (first in first out). The picture below illustrates how push - peek works on the queue:

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

 

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 input of a physical device. For example if the device is a thermostat then the signal name could be: THRESHOLD corresponding to an input to set the threshold for the temperature

 

Example:

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

 

Response

THRESHOLD,23.5

 

Assuming that a thermostat needs to read the threshold for temperature and the fan state then the request could be:

https://www.ic2pro.com/Wire/connector/peek?id=e94890a7-ebb6-4203-975b-30eb0f529efd&THRESHOLD&FAN

 

Response

THRESHOLD,23.5

FAN,ON

 

Pop All

        Extract all the values from the queues for a set of signals. The Wiring Cloud allows the user to consume buffered data from queues using this instruction. The queues are FIFO (first in first out). The picture below illustrates how push - popall works on the queue:

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

 

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 input of a physical device. For example if the device is a thermostat then the signal name could be: THRESHOLD corresponding to an input to set the threshold for the temperature

 

Example:

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

 

Response

THRESHOLD,23.5

THRESHOLD,24.5

THRESHOLD,22.5

 

Assuming that a thermostat needs to read the threshold for temperature and the fan state then the request could be:

https://www.ic2pro.com/Wire/connector/pop?id=e94890a7-ebb6-4203-975b-30eb0f529efd&THRESHOLD&FAN

 

Response

THRESHOLD,23.5

THRESHOLD,25.5

THRESHOLD,22.5

FAN,ON

FAN,OFF

 

Peek All

        Read all the values from the queues for a set of signals without consuming the values from the queue. The Wiring Cloud allows the user to peek the head of the buffered data from queues using this instruction. The queues are FIFO (first in first out). The picture below illustrates how push - peekall works on the queue:

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

 

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 input of a physical device. For example if the device is a thermostat then the signal name could be: THRESHOLD corresponding to an input to set the threshold for the temperature

 

Example:

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

 

Response

THRESHOLD,23.5

THRESHOLD,25.5

THRESHOLD,22.5

 

Assuming that a thermostat needs to read the threshold for temperature and the fan state then the request could be:

https://www.ic2pro.com/Wire/connector/peekall?id=e94890a7-ebb6-4203-975b-30eb0f529efd&THRESHOLD&FAN

 

Response

THRESHOLD,23.5

THRESHOLD,25.5

THRESHOLD,22.5

FAN,ON

FAN,OFF

 

Time Information

       All the functions to retrieve data have a variant to provide server time in the response.

http(s)://www.ic2pro.com/Wire/connector/time/get?id=<device_id>&<signal_name> ...&<signal_name>
http(s)://www.ic2pro.com/Wire/connector/time/pop?id=<device_id>&<signal_name> ...&<signal_name>
http(s)://www.ic2pro.com/Wire/connector/time/peek?id=<device_id>&<signal_name> ...&<signal_name>
http(s)://www.ic2pro.com/Wire/connector/time/popall?id=<device_id>&<signal_name> ...&<signal_name>
http(s)://www.ic2pro.com/Wire/connector/time/peekall?id=<device_id>&<signal_name> ...&<signal_name>

 

Example

https://www.ic2pro.com/Wire/connector/time/pop?id=e94890a7-ebb6-4203-975b-30eb0f529efd&THRESHOLD&FAN

 

Response

THRESHOLD,22,1427341670181

FAN,ON,1427341670181