     DynamicJsonBuffer jsonBuffer;
     JsonObject& json = jsonBuffer.createObject();
     json["auth"] = auth;
-
+	json["server"] = server;
     File configFile = SPIFFS.open("/config.json", "w");
     if (!configFile) {
       //Serial.println("failed to open config file for writing");

void setup() {
  Serial.begin(115200);
  
=======
void setup() {
  Serial.begin(115200);
  Serial.print("Start ATM90");
  InitEnergyIC();
>>>>>>> UART
  Wire.begin();
  
  display.begin(SSD1306_SWITCHCAPVCC, 0x3C);  // initialize with the I2C addr 0x3C (for the 128x32)

  // After connecting, parameter.getValue() will get you the configured value
  // id/name placeholder/prompt default length
  WiFiManagerParameter custom_ts_token("ts", "Thingspeak Key", auth, 33);
  WiFiManagerParameter custom_server("serv", "Server", server, 50);

  //Use wifi manager to get config
  WiFiManager wifiManager;
