To start working with the iotkik library, you will need to:
- Install it.
- Run a sample program (optional).
- Learn more (optional).
Install it
No installation is required on the device (support for other platforms coming soon).
Run a sample program
On the device, iotkit-comm sample programs can be found in /usr/share/iotkit-comm/examples/c. Here is how you run the distributed thermostat sample application included in the iotkit-comm sources:
$ cd /usr/share/iotkit-comm/examples/c
$ ./sensor
Then, in another terminal:
$ cd /usr/share/iotkit-comm/examples/c
$ ./thermostat
In the thermostat terminal, you will see output
You can run multiple instances of './sensor'; the thermostat will find those sensors and include their temperature data in the mean.