 
   // Initialize HW and JSON protocol code
   //Serial.println("Initilize Hardware");
-//  initBoardState(); // Assure a state
-  initBoardStateFromFile(BOARD_CONFIG_FILE_FULL_PATH); // Replace the state with the file, if available
+  initBoardState(); // Assure a state
+//  initBoardStateFromFile(BOARD_CONFIG_FILE_FULL_PATH); // Replace the state with the file, if available
   //delay(1000);
 
   //Serial.println("Starting WebSocket");

  {
    Serial.print("Empty file: ");
    Serial.println(_sFullFilePath);
  }
  else
  {
    Serial.println(sJsonFile); 
  }
//  Serial.println("File Close");
  fclose(fp);
  

int g_iCatNumber = 0;
int g_iChangeSsid = 1;
int g_iWriteToFile = 1;
int g_iSkipFirstWrite = 0;

void loop()
{

// TESTING
//  getSerialCommand(); 
  
  if (millis() - last_print > 5000)
  {
    /*
    // Save board state every ~1 sec
    if(g_iSkipFirstWrite)
      writeBoardStateToFile(BOARD_CONFIG_FILE_FULL_PATH);
      
    // Flush serial buffer to prevent crashes
    Serial.flush();  
    
    g_iSkipFirstWrite = 1;
    */
    last_print = millis();
  }

