This repository currently stores a sample for connecting a Raspberry Pi Model B to the IBM Internet of Things Cloud 'Quickstart' service.
- Compiled with: g++ (GCC) 4.8.2 20131219 (prerelease)
- Tested on: Arch Linux ARM for Raspberry Pi.
The build operations and program can be executed as a non-root user.
Build with the following commands:
$ cd <directory>
$ make && . configure.sh
Run with the following command:
$ ./bin/iot-raspberrypi-0x
Run the pre-built binary with the following command:
$ ./pre-built/iot-raspberrypi-0x-arch
The sample will send one message per second, for one minute. To visualise the output data, visit the IBM Internet of Things Cloud Quickstart Portal and enter your MAC address.
--- iot-raspberrypi-0x ---
Connecting... [ OK ]
Your MAC Address is: 12345678990AB
Network Interface: wlan0
............................................................
Disconnecting... [ OK ]
--- Sample finished. ---
Note: This is not a fork of ibm-messaging/iot-raspberrypi repository due to a large number of differences in source material. However, this repository will produce similar results.
####Libraries The required libraries (libpaho-mqtt3a and libmqttpp) are copied to ~/iot-raspberrypi-0x/lib
- libpaho-mqtt3a - Paho C Library for MQTT
- libmqttpp: C++ Wrapper for Paho C Library