   Serial.print(", MQTT_IP=");
   Serial.print(MQTT_PROXY_IP);
   Serial.print(", DeviceID=");
-  Serial.print(DEVICE_ID);
+  Serial.print(setting.device_id);
   Serial.print(", PartnerID=");
   Serial.print(PARTNER_ID);
   Serial.print(", TOPIC=");

  
  pinMode(BUZZER_ALARM_PIN, INPUT);
  
  display_current_setting(); 
  
  // General
  clientIDStr = DEVICE_ID;
  clientIDStr.toCharArray(clientID, clientIDStr.length()+1);
  sensor_setup();
  alarm_setup();
  

void wifiConnecting(){
    // Wifi
    Serial.print("Connecting to Wifi, SSID: ");
    Serial.println(setting.wifi_ssid);
    // Connect to WiFi (max retry 1 times )

    wifi_ready = Mtk_Wifi_Setup_TryCnt(1);
    if(wifi_ready) {
      //printWifiStatus(); // This may crash system, don't know why
      Serial.println("Wifi ready!");
