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

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers lex.h Source File

lex.h

00001 #ifndef LEX_H
00002 #define LEX_H
00003 #include <stddef.h>
00004 
00005 struct Token
00006 {
00007         enum TokType {
00008                 INT, FLOAT, STRING,
00009                 ASSIGN, SEMICOLON,
00010                 NONE, ERROR
00011         } type;
00012         const char *p;
00013         size_t len;
00014 };
00015 
00016 const char* skipHTTPHeader(const char* p);
00017 const char* lex(const char*, Token&);
00018 const char* lexConfig(const char* p, Token& tok);
00019 size_t strncpyEscape(char*, const char*, size_t);
00020 
00021 #endif /* LEX_H */