Do you know the MQTT protocol?
The MQTT is a machine-to-machine (M2M)/"Internet of Things" connectivity protocol. It was designed as an extremely lightweight publish/subscribe messaging transport. It is useful for connections with remote locations where a small code footprint is required and/or network bandwidth is at a premium.
For this project I use the MQTT protocol under Cayenne developer ambient. When you make an object that have sensor or actuator, you can make also a protocol for communication between that object, and for example your smartphone. The last step, the communication with smartphone, or computer, require a platform that show the value, or the buttons to activate the actuator. Cayenne give you a free platform to experiments your prototipe.
MQTT is the preferred transport and API for sending data to the Cayenne Cloud, or for devices that receive commands from Cayenne. The Cayenne Cloud acts as a broker, managing the various sensor and actuator client devices that wish to send and receive data using the Cayenne Cloud.
Cayenne MQTT is straightforward and easy to use, offering several different ways of connecting your data to Cayenne.