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.
Fork of SOFT253_Template_Weather_OS_54 by
MessageLogger/MessageLogger.h
- Committer:
- aburch1
- Date:
- 2017-04-25
- Revision:
- 75:b44645bbf2d2
- Parent:
- 74:749727490f44
- Child:
- 76:ee1f132e5744
File content as of revision 75:b44645bbf2d2:
#include "mbed.h" #include "rtos.h" #include <string> #include <sstream> #include <iostream> class MessageLogger { public: // constructor MessageLogger(); // public methods: void SendError(string errorMessage); void SendMessage(string message); bool GetError(); bool GetMessage(); void SetThread(Thread* logger); private: Thread* loggingThread; ostringstream fatalError; Mail<ostringstream, 16> message_mail; int messageCount; bool hasError; osStatus stat; void PrintError(); void PrintMessage(); };