 #define MQTT_MAX_PAYLOAD_SIZE						96
 #define MQTT_MAX_MESSAGE_HANDLERS					1
 #define MQTT_COMMAND_TIMEOUT_MS						(8*1000L)
-#define MQTT_KEEP_ALIVE_INTERVAL_SEC				(publishPeriodMs/1000L*3)
+#define MQTT_KEEP_ALIVE_INTERVAL_SEC				(publishPeriodMs/1000L*2)
 #define MQTT_CLIENT_ID								SENSOR_ID
 #define MQTT_SUBSCRIBE_QOS							MqttClient::QOS0
 #define MQTT_SUBSCRIBE_TOPIC_CFG					"test/sensor/" SENSOR_ID "/config"

	updateConfigTs = 0;
	connectCounter = 0;
	firstPublish = false;

	/// HW UART ///
	Uart *hwUart = new HwUart({HW_UART_SPEED});

unsigned long updateConfigTs						= 0;
int connectCounter									= 0;
bool firstPublish									= false;
bool firstUpdateConfig								= false;

//// DECLARATION ////
void(* reset) (void) = 0;//declare reset function at address 0
