Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Fork of ELEC351_Group_T by
Diff: DATA.hpp
- Revision:
- 10:46946784326d
- Parent:
- 8:0e4481b64353
- Child:
- 15:c1592fc1a501
--- a/DATA.hpp Wed Dec 20 13:01:36 2017 +0000
+++ b/DATA.hpp Wed Dec 20 14:32:40 2017 +0000
@@ -9,23 +9,23 @@
DATA();
//Setters
- void set_time(float time);
- void set_temperature(float temp);
- void set_pressure(float pressure);
- void set_light(float light);
+ void set_time(string time);
+ void set_temperature(double temp);
+ void set_pressure(double pressure);
+ void set_light(double light);
//Getters
- float get_time();
- float get_temperature();
- float get_pressure();
- float get_light();
+ string get_time();
+ double get_temperature();
+ double get_pressure();
+ double get_light();
private:
//Private member variables
- float _Time;
- float _Temperature;
- float _Pressure;
- float _Light;
+ string _Time;
+ double _Temperature;
+ double _Pressure;
+ double _Light;
};
