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.
WeatherStation.h
- Committer:
- loicguibert
- Date:
- 2019-03-08
- Revision:
- 5:0d9e292a9d06
- Parent:
- 4:bfe306335065
- Child:
- 11:dbc310addbf6
File content as of revision 5:0d9e292a9d06:
#pragma once
#include "Logger.h"
#include "NRFDevKit.h"
#include "LPS25HBDevice.h"
#include "HDC1000Device.h"
class WeatherStation
{
public:
// constructor
WeatherStation(NRFDevKit& nrfDevKit, Logger& logger);
// called for starting the weather station
// it will start getting measurements and advertise with data measurements
void start();
// called by timer
void performMeasurements(void);
private:
// data members
// event queue for handling all events (including timers)
events::EventQueue m_eventQueue;
// measurement interval
static const int m_measurementInterval;
// blink interval
static const int m_blinkInterval;
// reference to dev kit
NRFDevKit& m_nrfDevKit;
// reference to logger
Logger& m_logger;
// reference to devices
LPS25HBDevice m_lps25hb;
HDC1000Device m_hdc1000;
};