![](/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-26
- Revision:
- 76:ee1f132e5744
- Parent:
- 75:b44645bbf2d2
- Child:
- 77:db3384071634
File content as of revision 76:ee1f132e5744:
#include "mbed.h" #include "rtos.h" #include <string> #include <sstream> #include <iostream> class MessageLogger { public: // constructor MessageLogger(); // public methods: void SendError(char* errorMessage); void SendMessage(char* message); bool GetError(); bool GetMessage(); void SetThread(Thread* logger); private: Thread* loggingThread; char* fatalError; int messageCount; bool hasError; osStatus stat; void PrintError(); void PrintMessage(); };