Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Dirk Melchers
committed
Apr 10, 2011
1 parent
0c4b319
commit d99d189
Showing
6 changed files
with
44 additions
and
87 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
../hausmessung.h |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
../hausmessung.h |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
struct payload_data { | ||
byte typ; // typ = 1: temp, 2: strom | ||
byte id; // sensor id: 0..255 | ||
union { | ||
struct { | ||
float temp; // temperature * 100 | ||
char name[20]; | ||
} temperatur; | ||
struct { | ||
int watt; | ||
unsigned long count; | ||
unsigned long tx_count; | ||
} strom; | ||
} data; | ||
}; | ||
|
||
|
||
// no-cost stream operator as described at | ||
// http://sundial.org/arduino/?page_id=119 | ||
template<class T> | ||
inline Print &operator <<(Print &obj, T arg) | ||
{ | ||
obj.print(arg); | ||
return obj; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters