3rd Repo, trying to figure this out.

Dependencies:   LPS25H hts221

Fork of SOFT253_Template_Weather_OS_54 by Stage-1 Students SoCEM

Committer:
aburch1
Date:
Wed Apr 26 10:00:19 2017 +0000
Revision:
76:ee1f132e5744
Parent:
75:b44645bbf2d2
Child:
77:db3384071634
Started using char arrays for strings instead of stringstream objects

Who changed what in which revision?

UserRevisionLine numberNew contents of line
aburch1 74:749727490f44 1 #include "mbed.h"
aburch1 74:749727490f44 2 #include "rtos.h"
aburch1 74:749727490f44 3 #include <string>
aburch1 74:749727490f44 4 #include <sstream>
aburch1 74:749727490f44 5 #include <iostream>
aburch1 74:749727490f44 6
aburch1 74:749727490f44 7 class MessageLogger
aburch1 74:749727490f44 8 {
aburch1 74:749727490f44 9 public:
aburch1 74:749727490f44 10 // constructor
aburch1 75:b44645bbf2d2 11 MessageLogger();
aburch1 74:749727490f44 12
aburch1 74:749727490f44 13 // public methods:
aburch1 76:ee1f132e5744 14 void SendError(char* errorMessage);
aburch1 76:ee1f132e5744 15 void SendMessage(char* message);
aburch1 74:749727490f44 16 bool GetError();
aburch1 74:749727490f44 17 bool GetMessage();
aburch1 75:b44645bbf2d2 18 void SetThread(Thread* logger);
aburch1 74:749727490f44 19
aburch1 74:749727490f44 20 private:
aburch1 75:b44645bbf2d2 21 Thread* loggingThread;
aburch1 76:ee1f132e5744 22 char* fatalError;
aburch1 74:749727490f44 23 int messageCount;
aburch1 75:b44645bbf2d2 24 bool hasError;
aburch1 75:b44645bbf2d2 25 osStatus stat;
aburch1 74:749727490f44 26
aburch1 74:749727490f44 27 void PrintError();
aburch1 74:749727490f44 28 void PrintMessage();
aburch1 74:749727490f44 29 };