                 DFORMAT("[WSc] Connected to url: %s\n\r",  payload);
                 isConnected = true;
 
-			    // send message to server when Connected
-                // socket.io upgrade confirmation message (required)
-				webSocket.sendTXT("5");
+                DLN("Sending Subscription");
+                isSubscribed = false;
             }
             break;
         case WStype_TEXT:

  }


  const char* testRead = 
  "<omi:omiEnvelope xmlns:omi=\"omi.xsd\" version=\"1.0\" ttl=\"50\">"
    "<omi:read msgformat=\"odf\">"
      "<omi:msg>"
        "<Objects xmlns=\"odf.xsd\">"
          "<Object>"
            "<id>SmartHouse</id>"
            "<InfoItem name=\"FrontDoor\"/>"
          "</Object>"
        "</Objects>"
      "</omi:msg>"
    "</omi:read>"
  "</omi:omiEnvelope>";

  for (int wait = 0; wait < 15 && !isConnected; wait++) {
    DLN("Waiting for connection.");




void loop() {
    
  // if not connected try to connect
