char queue for WiFi communication

Revision:
0:043b1271ed1b
Child:
1:f9e6627f1f59
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/objectQueue.h	Wed Aug 02 03:21:02 2017 +0000
@@ -0,0 +1,25 @@
+#ifndef __STRQUEUE_INCLUDED__
+#define __STRQUEUE_INCLUDED__
+
+#include "mbed.h"
+
+class StrQueue {
+public:
+    StrQueue();
+    StrQueue(int size);
+    ~StrQueue();
+    int put(const char* message, int length = 0);
+    int get(char* str, int size);
+    int getChars(char* chars, int size);
+    bool isfull();
+    bool isEmpty();    
+    
+private:
+    Mutex lock;
+    bool empty, full;
+    int front, back;
+    int size;
+    char* chars;
+};
+
+#endif
\ No newline at end of file