web server load-drive and reading sensors based on LPC1768
Dependencies: DHT22 EthernetNetIf HTTPServer mbed
Leituras/Leitura.h@0:3125f39d20b4, 2015-12-07 (annotated)
- Committer:
- douglasofranco
- Date:
- Mon Dec 07 14:06:24 2015 +0000
- Revision:
- 0:3125f39d20b4
Web server load-drive and reading sensors based on LPC1768
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
douglasofranco | 0:3125f39d20b4 | 1 | #ifndef LEITURA_H_ |
douglasofranco | 0:3125f39d20b4 | 2 | #define LEITURA_H_ |
douglasofranco | 0:3125f39d20b4 | 3 | #include "mbed.h" |
douglasofranco | 0:3125f39d20b4 | 4 | #include "DHT22.h" |
douglasofranco | 0:3125f39d20b4 | 5 | |
douglasofranco | 0:3125f39d20b4 | 6 | using namespace std; |
douglasofranco | 0:3125f39d20b4 | 7 | extern int AC; |
douglasofranco | 0:3125f39d20b4 | 8 | extern int err; |
douglasofranco | 0:3125f39d20b4 | 9 | extern int szTemp; |
douglasofranco | 0:3125f39d20b4 | 10 | extern int szUmid; |
douglasofranco | 0:3125f39d20b4 | 11 | extern char szTemp2[10]; |
douglasofranco | 0:3125f39d20b4 | 12 | extern char szUmid2[10]; |
douglasofranco | 0:3125f39d20b4 | 13 | extern char Corrente[50]; |
douglasofranco | 0:3125f39d20b4 | 14 | extern char Corrente2[50]; |
douglasofranco | 0:3125f39d20b4 | 15 | extern char Corrente3[50]; |
douglasofranco | 0:3125f39d20b4 | 16 | extern char Tensao[10]; |
douglasofranco | 0:3125f39d20b4 | 17 | extern char TensCC[10]; |
douglasofranco | 0:3125f39d20b4 | 18 | extern float sensorValue; |
douglasofranco | 0:3125f39d20b4 | 19 | extern float sensorValue_aux; |
douglasofranco | 0:3125f39d20b4 | 20 | extern float sensorValue2; |
douglasofranco | 0:3125f39d20b4 | 21 | extern float sensorValue_aux2; |
douglasofranco | 0:3125f39d20b4 | 22 | extern float sensorValue3; |
douglasofranco | 0:3125f39d20b4 | 23 | extern float sensorValue_aux3; |
douglasofranco | 0:3125f39d20b4 | 24 | extern float getValor; |
douglasofranco | 0:3125f39d20b4 | 25 | extern float Tcc; |
douglasofranco | 0:3125f39d20b4 | 26 | extern float TensAC; |
douglasofranco | 0:3125f39d20b4 | 27 | |
douglasofranco | 0:3125f39d20b4 | 28 | class Leituras |
douglasofranco | 0:3125f39d20b4 | 29 | { |
douglasofranco | 0:3125f39d20b4 | 30 | public: |
douglasofranco | 0:3125f39d20b4 | 31 | void clima(); |
douglasofranco | 0:3125f39d20b4 | 32 | void corrente(); |
douglasofranco | 0:3125f39d20b4 | 33 | void corrente2(); |
douglasofranco | 0:3125f39d20b4 | 34 | void corrente3(); |
douglasofranco | 0:3125f39d20b4 | 35 | void TensaoCC(); |
douglasofranco | 0:3125f39d20b4 | 36 | void TensaoAC(); |
douglasofranco | 0:3125f39d20b4 | 37 | |
douglasofranco | 0:3125f39d20b4 | 38 | }; |
douglasofranco | 0:3125f39d20b4 | 39 | |
douglasofranco | 0:3125f39d20b4 | 40 | #endif |