 ///////////////////////////////
 void procSsidMsg( aJsonObject *_pJsonSsid )
 {
-  aJsonObject *poSsid = aJson.getObjectItem(_pJsonSsid, "ssid");
-  if ( poSsid && String(poSsid->valuestring).length() <= SSID_MAX_LENGTH )
-  {
-    if( strcmp(g_sSsid, poSsid->valuestring) )
-    {
-      sprintf(g_sSsid, "%s", poSsid->valuestring);
-      setSsidName(poSsid->valuestring);
+ // aJsonObject *poSsid = aJson.getObjectItem(_pJsonSsid, "ssid");
+ // Serial.println("HERE");
+ // Serial.print("here SSID size: ");Serial.println(String(_pJsonSsid->valuestring).length());
+  if ( String(_pJsonSsid->valuestring).length() <= SSID_MAX_LENGTH )
+  {
+   //  Serial.print("SSID size: ");Serial.println(String(_pJsonSsid->valuestring).length());
+    if( strcmp(g_sSsid, _pJsonSsid->valuestring) )
+    {
+     //     Serial.print("SSID: ");Serial.println(_pJsonSsid->valuestring);
+      sprintf(g_sSsid, "%s", _pJsonSsid->valuestring);
+      setSsidName(_pJsonSsid->valuestring);
     }
   }
  }

    // Test code
    ///////////////////////////////////////
    
    getSerialCommand(); 
   
/*
    g_iCatNumber++;

      int iSsidLen = strlen(Line)-strlen(Find);
      // Truncate Ssid if it too long
      int n = iSsidLen < SSID_MAX_LENGTH ? iSsidLen : SSID_MAX_LENGTH;
      strncpy(_sSsidName, SubStr+strlen(Find), n-1);
    }
  }

