     Serial.println(PRJ_VERSION);
     Serial.println();
     Serial.print("mqtt: ");
-    Serial.print(mqtt_server);
+    Serial.print(settings.mqtt_server);
     Serial.print(":");
-    Serial.println(mqtt_port);
+    Serial.println(settings.mqtt_port);
     Serial.print("mqtt user: ");
-    Serial.print(mqtt_user);
+    Serial.print(settings.mqtt_user);
     Serial.print("/");
-    Serial.println(mqtt_password);
+    Serial.println(settings.mqtt_password);
     Serial.print("topics: ");
     Serial.print(topicStatus);
     Serial.print(" , ");


Adafruit_BMP085_Unified bmp;

// MQTT
const char config_path[20] = "/config.json";
char mqtt_server[120]="mqtt.broker.net";
char mqtt_port_config[6]="1883";
char mqtt_user[120]="";
char mqtt_password[120]="";
int mqtt_port = 1883;
const String topicCmd    = "esp/" + String(ESP.getChipId()) + "/cmd";
const String topicStatus = "esp/" + String(ESP.getChipId()) + "/status";
const String clientId = "ESP8266Client" + String(ESP.getChipId()) ;

//needed for library
#include <DNSServer.h>
#include <ESP8266WiFi.h>
#include <ESP8266WebServer.h>
#include <WiFiManager.h>          //https://github.com/tzapu/WiFiManager
#include <EEPROM.h>

#include <ArduinoJson.h>          //https://github.com/bblanchon/ArduinoJson

