![](/media/cache/profiles/ba5be68d3d541f2ca043d77fc54fe702.jpg.50x50_q85.jpg)
3rd Repo, trying to figure this out.
Fork of SOFT253_Template_Weather_OS_54 by
MessageLogger/MessageLogger.h
- Committer:
- aburch1
- Date:
- 2017-04-24
- Revision:
- 74:749727490f44
- Child:
- 75:b44645bbf2d2
File content as of revision 74:749727490f44:
#include "mbed.h" #include "rtos.h" #include <string> #include <sstream> #include <iostream> class MessageLogger { public: // constructor MessageLogger(Thread* logger); // public methods: void SendError(string errorMessage); void SendMessage(string message); bool GetError(); bool GetMessage(); private: Thread loggingThread; ostringstream fatalError; Mail<ostringstream, 16> message_mail; int messageCount; void PrintError(); void PrintMessage(); };