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.
MeasurementHistory.h
- Committer:
- loicguibert
- Date:
- 2019-03-19
- Revision:
- 11:dbc310addbf6
- Child:
- 12:856286ad4cdc
File content as of revision 11:dbc310addbf6:
#pragma once #include <stdint.h> class MeasurementHistory { public: // constructor MeasurementHistory(); void addMeasurement(uint16_t temp, uint16_t pressure, uint16_t humidity, float time); private: struct Data { uint16_t m_temp; uint16_t m_pressure; uint16_t m_humidity; float m_time; }; // data members static const int DEFAULT_SIZE = 1000; static const int ARRAY_SIZE = DEFAULT_SIZE / sizeof(DEFAULT_SIZE); Data m_measures[/*ARRAY_SIZE*/3]; int m_index; };