 void loop()
 {
 
+    // Update HW
+    updateBoardState();
+  
 // TESTING
 //  getSerialCommand(); 
   

  memset(buf,'\0',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();  
  

  
//  Serial.print("Msg recvd: ");
//  Serial.println(_acMsg);
  
  // Ignore messages bigger than we can handle
  if( sizeof(_acMsg) >= WEB_SOCKET_BUFFER_SIZE )
