Index: trunk/Arduino/libraries/ot_slave_2/ot_slave_2.cpp
===================================================================
--- trunk/Arduino/libraries/ot_slave_2/ot_slave_2.cpp	(revision 7)
+++ trunk/Arduino/libraries/ot_slave_2/ot_slave_2.cpp	(revision 8)
@@ -6,6 +6,7 @@
 OpenthermData  OT_V2R2_Slave::message;
 
-OT_V2R2_Slave::OT_V2R2_Slave ()
+OT_V2R2_Slave::OT_V2R2_Slave (OT_Data_CB cb)
 :
+  cbPostReq(cb),
   chEnable(false),
   chActive(false),
Index: trunk/Arduino/libraries/ot_slave_2/ot_slave_2.h
===================================================================
--- trunk/Arduino/libraries/ot_slave_2/ot_slave_2.h	(revision 7)
+++ trunk/Arduino/libraries/ot_slave_2/ot_slave_2.h	(revision 8)
@@ -5,8 +5,11 @@
 #include <opentherm.h>
 
+typedef void (*OT_Data_CB)(const OpenthermData&);
+
 class OT_V2R2_Slave {
 
 protected:
   static OpenthermData  message;
+  OT_Data_CB		cbPostReq;
   bool                  chEnable;
   bool                  chActive;
@@ -18,5 +21,5 @@
 
 public:
-  OT_V2R2_Slave ();
+  OT_V2R2_Slave (OT_Data_CB cbPostReq = 0);
 
   virtual void  Setup ();
Index: trunk/Arduino/projects/OT_boiler/OT_boiler.ino
===================================================================
--- trunk/Arduino/projects/OT_boiler/OT_boiler.ino	(revision 7)
+++ trunk/Arduino/projects/OT_boiler/OT_boiler.ino	(revision 8)
@@ -2,4 +2,6 @@
 #include <Ethernet.h>
 #include <ot_slave_2.h>
+
+void  Sent_OT_Data (const OpenthermData& data);
 
 byte  mac[] = { 0x02, 0xDE, 0xAD, 0xDE, 0xAD, 0x01 };
@@ -9,5 +11,5 @@
 volatile bool  _connected = false;
 
-OT_V2R2_Slave boiler;
+OT_V2R2_Slave boiler(Sent_OT_Data);
 
 EthernetClient client;
@@ -15,6 +17,4 @@
 void setup() 
 {
-  boiler.Setup();
-
   // Console
   // Serial.begin(9600);
@@ -26,4 +26,8 @@
 */
   Serial.println("\nSystem starting...");
+  // Setup OT
+  Serial.print("OpenTherm.setup...");
+  boiler.Setup();
+  Serial.println("done");
   // Setup Ethernet
   Serial.print("Ethernet.begin...");
@@ -87,12 +91,12 @@
       Serial.println("Ethernet: connection lost!");  
     }
-    Serial.println("Ethernet: restarting...");
+//    Serial.println("Ethernet: restarting...");
     client.stop();
-    Serial.println("Ethernet: connecting...");
+//    Serial.println("Ethernet: connecting...");
     client.connect(server, 23456);  
   }
 }
 
-void	Sent_OT_Data (OpenthermData& data)
+void	Sent_OT_Data (const OpenthermData& data)
 {
   state = OPENTHERM::getMode();
