projet capteur connecté ST/SE
Dependencies: HP206C mbed HMC5883L DHT DS1820
main.cpp@45:60f602ecd59b, 2018-10-01 (annotated)
- Committer:
- MathieuM
- Date:
- Mon Oct 01 10:02:53 2018 +0000
- Revision:
- 45:60f602ecd59b
- Parent:
- 33:2a6476c33e74
- Child:
- 46:40b6bbf6167e
Create config file
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
MathieuM | 0:fa6e7dd26ef2 | 1 | #include "mbed.h" |
MathieuM | 45:60f602ecd59b | 2 | #include "config.h" |
MathieuM | 45:60f602ecd59b | 3 | #include "communication.h" |
MathieuM | 0:fa6e7dd26ef2 | 4 | |
MathieuM | 45:60f602ecd59b | 5 | Serial wisol(SERIAL_PORT); |
MathieuM | 0:fa6e7dd26ef2 | 6 | |
MathieuM | 0:fa6e7dd26ef2 | 7 | int main() { |
MathieuM | 0:fa6e7dd26ef2 | 8 | while(1) { |
MathieuM | 33:2a6476c33e74 | 9 | /* |
MathieuM | 33:2a6476c33e74 | 10 | read T&H air |
MathieuM | 33:2a6476c33e74 | 11 | read T sol |
MathieuM | 33:2a6476c33e74 | 12 | read H sol |
MathieuM | 33:2a6476c33e74 | 13 | read Pressure |
MathieuM | 33:2a6476c33e74 | 14 | read Magnetic |
MathieuM | 33:2a6476c33e74 | 15 | |
MathieuM | 33:2a6476c33e74 | 16 | m = genMessage(T_air, H_air, T_sol, H_sol, Pressure, Mag) |
MathieuM | 33:2a6476c33e74 | 17 | sendMessage(m) |
MathieuM | 33:2a6476c33e74 | 18 | */ |
MathieuM | 45:60f602ecd59b | 19 | wait(WAIT_TIME); |
MathieuM | 0:fa6e7dd26ef2 | 20 | } |
MathieuM | 0:fa6e7dd26ef2 | 21 | } |