     aJson.addItemToObject(poPins,caPinNumBuffer,apoPin[i]);
 
   }
-  
-  /*
-  {"status":<OK,ERROR>,  "pins":{"<0,1,…,13,A0,…,A5>":  {
-  "label":"<label text>",  
-	"is_analog":"<true,false>",  
-	"is_input":"<true,false>", 
-“sensitivity”:”<0.0,1.0>”, 
-“is_inverted”:”<true,false>”, 
-“is_visible”:”<true,false>”,
-"value":"<0.0,1.0>",  },  ...,  }, 
-"connections":[ {"source":"<0,1,…,13,A0,…,A5>","target":"<0,1,…,13,A0,…,A5>",”is_connected”:”<true,false>”},  ...,  ]  }
-  */
-  
+   
   // Create CONNECTIONS
   for(int i=0; i<TOTAL_NUM_OF_PINS ;i++)
   {

// **********************************
// Send pin status to the Website    
// **********************************
/*
int  sendStatusToWebsite(struct libwebsocket *wsi)
{
  int n;
  unsigned char buf[LWS_SEND_BUFFER_PRE_PADDING + 512 + LWS_SEND_BUFFER_POST_PADDING];
  unsigned char *p = &buf[LWS_SEND_BUFFER_PRE_PADDING];

  n = sprintf((char *)p, "%d,%d,%d,%d,%d,%d,%d,%d,%d,%d,%d,%d,%d,%d,%f,%f,%f,%f,%f,%f",
  g_abD[0],
  g_abD[1],
  g_abD[2],
  g_aiP[3],   // Px
  g_abD[4],
  g_aiP[5],   // Px
  g_aiP[6],   // Px
  g_abD[7],
  g_abD[8],
  g_aiP[9],   // Px
  g_aiP[10],  // Px
  g_aiP[11],  // Px
  g_abD[12],
  g_abD[13],
  analogRead(A0)/float(ANALOG_IN_MAX_VALUE),
  analogRead(A1)/float(ANALOG_IN_MAX_VALUE),
  analogRead(A2)/float(ANALOG_IN_MAX_VALUE),
  analogRead(A3)/float(ANALOG_IN_MAX_VALUE),
  analogRead(A4)/float(ANALOG_IN_MAX_VALUE),
  analogRead(A5)/float(ANALOG_IN_MAX_VALUE)
    );

  n = libwebsocket_write(wsi, p, n, LWS_WRITE_TEXT); 

  return n;
}
*/

int  sendStatusToWebsiteNew(struct libwebsocket *wsi)
{

  int n = 0;

  unsigned char buf[LWS_SEND_BUFFER_PRE_PADDING + WEB_SOCKET_BUFFER_SIZE + LWS_SEND_BUFFER_POST_PADDING];
  unsigned char *p = &buf[LWS_SEND_BUFFER_PRE_PADDING];
  
  updateBoardState();
      
  aJsonObject *msg = getJsonBoardState();  
  
  aJsonStringStream stringStream(NULL, (char *)p, WEB_SOCKET_BUFFER_SIZE);

  // Iterate all pins and check if we have data available
  for(int i=0; i<TOTAL_NUM_OF_PINS; i++)
  {
    char pinstr[10];
    snprintf(pinstr, sizeof(pinstr), "%d", i);    
    aJsonObject *poPinVals = aJson.getObjectItem(_pJsonPins, pinstr);
    if (poPinVals)
    {
      char sPinState[LOCAL_BUFFER_SIZE];

      aJsonObject *poLabel = aJson.getObjectItem(poPinVals, "label");
      if (poLabel)
