Index: trunk/Arduino/projects/OT_boiler/OT_boiler.ino
===================================================================
--- trunk/Arduino/projects/OT_boiler/OT_boiler.ino	(revision 10)
+++ trunk/Arduino/projects/OT_boiler/OT_boiler.ino	(revision 11)
@@ -1,9 +1,9 @@
 #include <SPI.h>
 #include <Ethernet.h>
-#include <ot_slave_2.h>
+#include <OT_Slave.h>
 
 #define CONSOLE(cmd)  do { if (Serial) Serial.cmd; } while (0)
 
-void  Sent_OT_Data (const OpenthermData& data);
+void  Sent_OT_Data (const OT_Action& data);
 
 byte  mac[] = { 0x02, 0xDE, 0xAD, 0xDE, 0xAD, 0x01 };
@@ -13,5 +13,5 @@
 volatile bool  _connected = false;
 
-OT_V2R2_Slave boiler(Sent_OT_Data);
+OT_Slave boiler;
 
 EthernetClient client;
@@ -20,16 +20,9 @@
 {
   // Console
-  // Serial.begin(9600);
   Serial.begin(19200);
-/*
-  while (!Serial) {
-    ; // wait for serial port to connect. Needed for native USB port only
-  }
-*/
-//  if (Serial) Serial.println("\nSystem starting...");
   CONSOLE(println("\nSystem starting..."));
   // Setup OT
   CONSOLE(print("OpenTherm.setup..."));
-  boiler.Setup();
+  boiler.begin(Sent_OT_Data);
   CONSOLE(println("done"));
   // Setup Ethernet
@@ -38,4 +31,5 @@
   CONSOLE(println("done"));
   // Check for Ethernet hardware present
+/*  Not needed anymore
   if (Ethernet.hardwareStatus() == EthernetNoHardware) {
     CONSOLE(println("Ethernet shield was not found.  Sorry, can't run without hardware. :("));
@@ -43,8 +37,4 @@
       delay(1); // do nothing, no point running without Ethernet hardware
     }
-  }
-/*
-  if (Ethernet.linkStatus() == LinkOFF) {
-    Serial.println("Ethernet cable is not connected.");
   }
 */
@@ -62,5 +52,5 @@
 */
   maintainEthernet();
-  boiler.Loop();
+  boiler.maintain();
 /*
   delay(1000);
@@ -102,5 +92,5 @@
 }
 
-void	Sent_OT_Data (const OpenthermData& data)
+void	Sent_OT_Data (const OT_Action& data)
 {
   state = OPENTHERM::getMode();
@@ -111,4 +101,5 @@
     client.print(state,HEX);
     client.print("]\t");
+/*
     client.print(data.type,HEX);
     client.print(":");
@@ -118,4 +109,10 @@
     client.print(":");
     client.print(data.valueLB,HEX);
+*/
+    uint32_t request = *((uint32_t *)&data.request);
+    client.print(request,HEX);
+    client.print("\t");
+    uint32_t response = *((uint32_t *)&data.response);
+    client.print(response,HEX);
     client.println("");
   }
