 
 #define ANALOG_OUT_MAX_VALUE 255
 #define ANALOG_IN_MAX_VALUE 1024 //4096
+
+char** g_caaPinNames[20][PIN_LABEL_SIZE];
 
 typedef struct Pin {
   char label[PIN_LABEL_SIZE];

"connections":[ {"source":"<0,1,…,13,A0,…,A5>","target":"<0,1,…,13,A0,…,A5>",”is_connected”:”<true,false>”},  ...,  ]  }
  */
  

  // Create CONNECTIONS
  int iaConnections[10];
  poConnections = aJson.createIntArray(iaConnections, 0);  

  // Push to JSON object
  aJson.addItemToObject(poJsonBoardState,"status",poStatus);  
  aJson.addItemToObject(poJsonBoardState,"pins",poPins);
  aJson.addItemToObject(poJsonBoardState,"connections",poConnections);

  return poJsonBoardState;



  if( g_luiCounter%100 == 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);
    aJson.print(msg, &stringStream);
    String sTempString((char *)p);
      
    n = libwebsocket_write(wsi, p, sTempString.length(), LWS_WRITE_TEXT);
    
    aJson.deleteItem(msg);

  }

  g_luiCounter++;
