   }
 
 
-  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.");

uint64_t messageTimestamp = 0;
uint64_t heartbeatTimestamp = 0;
bool isConnected = false;

void webSocketEvent(WStype_t type, uint8_t * payload, size_t length) {



  while (isConnected) {
    webSocket.loop();
    //DFORMAT("RAM Memory left: %d\r\n", ESP.getFreeHeap());

    if (! isSubscribed) {
      webSocket.sendTXT(PoleSubscriptionRequest);
      isSubscribed = true; // TODO: Check response success
    }

    uint64_t now = millis();

    if((now - heartbeatTimestamp) > HEARTBEAT_INTERVAL) {
      heartbeatTimestamp = now;

