Time: 17:33 Date: 10/12/2017 Description: Task 1,7,8 Currently Functioning
Dependencies: BME280 BMP280 TextLCD
Working Repository
DATA.hpp@8:0e4481b64353, 2017-12-19 (annotated)
- Committer:
- thomasmorris
- Date:
- Tue Dec 19 13:26:54 2017 +0000
- Revision:
- 8:0e4481b64353
- Child:
- 10:46946784326d
Added DATA Class structure and networking example
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
thomasmorris | 8:0e4481b64353 | 1 | #ifndef _DATA_HPP_ |
thomasmorris | 8:0e4481b64353 | 2 | #define _DATA_HPP_ |
thomasmorris | 8:0e4481b64353 | 3 | |
thomasmorris | 8:0e4481b64353 | 4 | class DATA |
thomasmorris | 8:0e4481b64353 | 5 | { |
thomasmorris | 8:0e4481b64353 | 6 | |
thomasmorris | 8:0e4481b64353 | 7 | public: |
thomasmorris | 8:0e4481b64353 | 8 | |
thomasmorris | 8:0e4481b64353 | 9 | DATA(); |
thomasmorris | 8:0e4481b64353 | 10 | |
thomasmorris | 8:0e4481b64353 | 11 | //Setters |
thomasmorris | 8:0e4481b64353 | 12 | void set_time(float time); |
thomasmorris | 8:0e4481b64353 | 13 | void set_temperature(float temp); |
thomasmorris | 8:0e4481b64353 | 14 | void set_pressure(float pressure); |
thomasmorris | 8:0e4481b64353 | 15 | void set_light(float light); |
thomasmorris | 8:0e4481b64353 | 16 | |
thomasmorris | 8:0e4481b64353 | 17 | //Getters |
thomasmorris | 8:0e4481b64353 | 18 | float get_time(); |
thomasmorris | 8:0e4481b64353 | 19 | float get_temperature(); |
thomasmorris | 8:0e4481b64353 | 20 | float get_pressure(); |
thomasmorris | 8:0e4481b64353 | 21 | float get_light(); |
thomasmorris | 8:0e4481b64353 | 22 | |
thomasmorris | 8:0e4481b64353 | 23 | private: |
thomasmorris | 8:0e4481b64353 | 24 | //Private member variables |
thomasmorris | 8:0e4481b64353 | 25 | float _Time; |
thomasmorris | 8:0e4481b64353 | 26 | float _Temperature; |
thomasmorris | 8:0e4481b64353 | 27 | float _Pressure; |
thomasmorris | 8:0e4481b64353 | 28 | float _Light; |
thomasmorris | 8:0e4481b64353 | 29 | }; |
thomasmorris | 8:0e4481b64353 | 30 | |
thomasmorris | 8:0e4481b64353 | 31 | |
thomasmorris | 8:0e4481b64353 | 32 | #endif |