 Copyright (c) Nicholas Tyrrell, Bournemouth University
 Code inspired by http://www.eclipse.org/paho/clients/c/embedded/
 */
-
-#define MQTTCLIENT_QOS2 1
 
 #include <SPI.h>
 #include <Ethernet2.h>

}

void loop() {
	if (!mqttClient.isConnected()) {
		connect();
	} else {
		checkSwitches();
	}
}
		MQTTPacket_connectData data = MQTTPacket_connectData_initializer;
		data.willFlag = 1;
		data.MQTTVersion = 4;
		data.cleansession = 1;
		data.keepAliveInterval = 10;
		data.clientID.cstring = (char*)"sensor-1";
		data.will.topicName.cstring = (char*)willTopicBuffer;
		data.will.qos = 2;
