Official reference client implementation for Cumulocity SmartREST on u-blox C027.

Dependencies:   C027_Support C12832 LM75B MMA7660 MbedSmartRest mbed-rtos mbed

Fork of MbedSmartRestMain by Vincent Wochnik

Revision:
94:61d44636f020
Child:
95:010b0f7a0a1a
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/util/lex.h	Mon Apr 20 15:04:23 2015 +0000
@@ -0,0 +1,22 @@
+#ifndef LEX_H
+#define LEX_H
+#include <stddef.h>
+
+struct Token
+{
+        enum TokType{
+                INT,
+                FLOAT,
+                STRING,
+                NONE,
+                ERROR
+        } type;
+        const char *p;
+        size_t len;
+};
+
+const char* skipHTTPHeader(const char* p);
+const char* lex(const char*, Token&);
+size_t strncpyEscape(char*, const char*, size_t);
+
+#endif /* LEX_H */