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

util/lex.h

Committer:
xinlei
Date:
2016-08-08
Revision:
139:f8ab852e83e7
Parent:
135:c4009ecaf5c0

File content as of revision 139:f8ab852e83e7:

#ifndef LEX_H
#define LEX_H
#include <stddef.h>

struct Token
{
        enum TokType {
                INT, FLOAT, STRING,
                ASSIGN, SEMICOLON,
                NONE, ERROR
        } type;
        const char *p;
        size_t len;
};

const char* skipHTTPHeader(const char* p);
const char* lex(const char*, Token&);
const char* lexConfig(const char* p, Token& tok);
size_t strncpyEscape(char*, const char*, size_t);

#endif /* LEX_H */