Skip to content

Instantly share code, notes, and snippets.

@jt-nti
jt-nti / mqttjogglermashup.c
Created October 5, 2015 14:24 — forked from anonymous/mqttjogglermashup.c
Simply publishes the Joggler light level reading to MQTT.
/*
* Basic mash up of Andrew de Quincey's Joggler light sensor code
* and sample MQTT client code to publish light sensor reading
* messages.
* For more info. see:
* http://code.google.com/p/adqmisc/source/browse/trunk/joggler/readlightsensor.c
* http://www.eclipse.org/paho/files/mqttdoc/Cclient/
* http://jtlog.wordpress.com/2013/02/07/mqtt-joggler/
*/
#include "stdio.h"