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
util/lex.h@139:f8ab852e83e7, 2016-08-08 (annotated)
- Committer:
- xinlei
- Date:
- Mon Aug 08 11:05:57 2016 +0000
- Revision:
- 139:f8ab852e83e7
- Parent:
- 135:c4009ecaf5c0
Etisalat and Teleena APN.
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
xinlei | 94:61d44636f020 | 1 | #ifndef LEX_H |
xinlei | 94:61d44636f020 | 2 | #define LEX_H |
xinlei | 94:61d44636f020 | 3 | #include <stddef.h> |
xinlei | 94:61d44636f020 | 4 | |
xinlei | 94:61d44636f020 | 5 | struct Token |
xinlei | 94:61d44636f020 | 6 | { |
xinlei | 135:c4009ecaf5c0 | 7 | enum TokType { |
xinlei | 99:e369fc75c000 | 8 | INT, FLOAT, STRING, |
xinlei | 99:e369fc75c000 | 9 | ASSIGN, SEMICOLON, |
xinlei | 99:e369fc75c000 | 10 | NONE, ERROR |
xinlei | 94:61d44636f020 | 11 | } type; |
xinlei | 94:61d44636f020 | 12 | const char *p; |
xinlei | 94:61d44636f020 | 13 | size_t len; |
xinlei | 94:61d44636f020 | 14 | }; |
xinlei | 94:61d44636f020 | 15 | |
xinlei | 94:61d44636f020 | 16 | const char* skipHTTPHeader(const char* p); |
xinlei | 94:61d44636f020 | 17 | const char* lex(const char*, Token&); |
xinlei | 99:e369fc75c000 | 18 | const char* lexConfig(const char* p, Token& tok); |
xinlei | 94:61d44636f020 | 19 | size_t strncpyEscape(char*, const char*, size_t); |
xinlei | 94:61d44636f020 | 20 | |
xinlei | 94:61d44636f020 | 21 | #endif /* LEX_H */ |