Changeset 8 for trunk/Arduino/projects/OT_boiler
- Timestamp:
- Jun 28, 2019, 1:42:31 AM (7 years ago)
- File:
-
- 1 edited
-
trunk/Arduino/projects/OT_boiler/OT_boiler.ino (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Arduino/projects/OT_boiler/OT_boiler.ino
r7 r8 2 2 #include <Ethernet.h> 3 3 #include <ot_slave_2.h> 4 5 void Sent_OT_Data (const OpenthermData& data); 4 6 5 7 byte mac[] = { 0x02, 0xDE, 0xAD, 0xDE, 0xAD, 0x01 }; … … 9 11 volatile bool _connected = false; 10 12 11 OT_V2R2_Slave boiler ;13 OT_V2R2_Slave boiler(Sent_OT_Data); 12 14 13 15 EthernetClient client; … … 15 17 void setup() 16 18 { 17 boiler.Setup();18 19 19 // Console 20 20 // Serial.begin(9600); … … 26 26 */ 27 27 Serial.println("\nSystem starting..."); 28 // Setup OT 29 Serial.print("OpenTherm.setup..."); 30 boiler.Setup(); 31 Serial.println("done"); 28 32 // Setup Ethernet 29 33 Serial.print("Ethernet.begin..."); … … 87 91 Serial.println("Ethernet: connection lost!"); 88 92 } 89 Serial.println("Ethernet: restarting...");93 // Serial.println("Ethernet: restarting..."); 90 94 client.stop(); 91 Serial.println("Ethernet: connecting...");95 // Serial.println("Ethernet: connecting..."); 92 96 client.connect(server, 23456); 93 97 } 94 98 } 95 99 96 void Sent_OT_Data ( OpenthermData& data)100 void Sent_OT_Data (const OpenthermData& data) 97 101 { 98 102 state = OPENTHERM::getMode();
Note: See TracChangeset
for help on using the changeset viewer.
![(please configure the [header_logo] section in trac.ini)](/trac/Paradigma/chrome/site/paradigma.png)