Version 8, working version with Alix, sams and ollies code. Displays time, date and sensor info onto terminal, LCD and networking, and saves onto SD card.

Dependencies:   BMP280 ELEC350-Practicals-FZ429 TextLCD BME280 ntp-client

main.cpp

Committer:
O_Thom
Date:
2018-11-27
Revision:
4:740cba3f2716
Parent:
2:38d31b2e0956
Child:
5:f87129ac8bf3

File content as of revision 4:740cba3f2716:

/* Sampling Code */
 #include "mbed.h"
#include "sample_hardware.hpp"
#include "Sampler.hpp"


Sampler s;   // Initialise the s object
Ticker t;               // Time Initialisation

void doISR()
{
   s.activate();   // Signal the sampling thread to move from WAITING to READY
}
    

int main()
{
    
    s.sampEQueue.call_every(1000, &Sampler::publishSample);     // Publish sample 
    
    s.sampEQueue.dispatch();
}