 /*
     g_iCatNumber++;
     char sSsidName[100];
-    sprintf(sSsidName, "CAT%i", g_iCatNumber);
+    sprintf(sSsidName, "CA3333333333333333333333333333344444444444444444444444444444444444444444444T%i", g_iCatNumber);
     changeSsidName(sSsidName);
- */ 
+ */
     //////////////////////////////////////////  
 
     last_print = millis();


int changeSsidName(char *_sSsidName)
{
//    char    sSsidName[LOCAL_BUFFER_SIZE];

  // Truncate Ssid if it too long
  // SSID_MAX_LENGTH

// We need a buffer to read in data
  char      Buffer[LOCAL_BUFFER_SIZE];

  // Open the file for reading/write.
  FILE     *Input = fopen(HOSTAPD_CONFIG_FILE_FULL_PATH, "r+"); // Read/write

  // Our find and replace arguments
  char     *Find = "ssid=";
  char    sSsidLine[LOCAL_BUFFER_SIZE];

//  Serial.println("Create SSID:    ");
  // Create file line    
  sprintf(sSsidLine, "ssid=%s", _sSsidName);
  
  if(NULL == Input)
  {
      trace_info("%s(): /etc/hostapd/hostapd.conf File not found", __func__);
      return 1;
  }

//  Serial.print("Find:    ");     Serial.println(Find);

  // For each line...
  while(NULL != fgets(Buffer, LOCAL_BUFFER_SIZE, Input))
  {
    char *Start = NULL;    // Where 'ssid=' was found in the line
    char *Line = Buffer; // Start at the beginning of the line, and after each match
    
 //   Serial.print("Line: "); Serial.println(Buffer);
    
      // Find match
    Start = strstr(Line, Find);
    if( Start )
    {
 //     Serial.print("Write: "); Serial.println(sSsidLine);
      fwrite(sSsidLine, 1, strlen(sSsidLine), Input);
    }
  }

  // Close our files
  fclose(Input);
  
  return 0;
}

  if (Serial.available() > 0) {
    // get incoming byte:
    g_iByte = Serial.read();

    switch (g_iByte)
    {
