 		JsonObject& json = jsonBuffer.createObject();
 		JsonObject& temperatures = json.createNestedObject("Temperatures");
 		if (temp1 != -127)
-			temperatures["hagestue"] = String(temp1);
+			temperatures["in"] = String(temp1);
 		if (temp2 != -127)
-			temperatures["inne"] = String(temp2);
+			temperatures["out"] = String(temp2);
 		if (temp3 != -127)
-			temperatures["ute"] = String(temp3);
+			temperatures["aux"] = String(temp3);
 
 		xnsClient.sendMqttData(json);
 		

#include <SPI.h>
#include <PubSubClient.h>
#include <ArduinoJson.h>
/*
#include <ESP8266httpUpdate.h>
#include <ESP8266HTTPClient.h>
#include <WiFiUdp.h>
#include <WiFiServer.h>
#include <WiFiClientSecure.h>
#include <WiFiClient.h>
#include <ESP8266WiFiType.h>
#include <ESP8266WiFiSTA.h>
#include <ESP8266WiFiScan.h>
#include <ESP8266WiFiMulti.h>
#include <ESP8266WiFiGeneric.h>
#include <ESP8266WiFiAP.h>
#include <ESP8266WiFi.h>
*/
#include <DallasTemperature.h>
#include <OneWire.h>
#include "xnsclient.h"

#define APP_NAME		"xns.sensors.tripletemp"
const int version[] = { 1, 0, 0, 20 };

// Dallas Temperature (18B20) sensor
#define TEMP_PIN1 12
#define TEMP_PIN2 4
#define TEMP_PIN3 5

OneWire oneWire1(TEMP_PIN1);
DallasTemperature tempSensor1(&oneWire1);

	Serial.begin(115200);
	while (!Serial);

	xnsClient.begin(hw_name, hw_revision,fw_revision, -1, Serial);
	xnsClient.setAliveMessageInterval(60);
	xnsClient.setMqttMessageCallback(mqttMessageReceived);
}
