branch with improvemnts
Fork of M2XStreamClient by
Diff: M2XStreamClient.cpp
- Revision:
- 4:ba0d02be2835
- Parent:
- 2:7ea7ab05f120
- Child:
- 10:4ce9eba38dbe
--- a/M2XStreamClient.cpp Sun Sep 07 05:30:08 2014 +0000 +++ b/M2XStreamClient.cpp Sun Sep 07 17:56:18 2014 +0000 @@ -7,25 +7,6 @@ const char* M2XStreamClient::kDefaultM2XHost = "api-m2x.att.com"; -// import from jsonlite.c -typedef uint8_t parse_state; -struct jsonlite_parser_struct { - const uint8_t *cursor; - const uint8_t *limit; - const uint8_t *token_start; - const uint8_t *buffer; - - uint8_t *buffer_own; - uint8_t *rest; - size_t rest_size; - - parse_state *current; - const parse_state *last; - - jsonlite_result result; - jsonlite_parser_callbacks callbacks; -}; - int print_encoded_string(Print* print, const char* str); int tolower(int ch); @@ -362,7 +343,7 @@ return E_JSON_INVALID; } - index += i - p->rest_size; + index += i; } jsonlite_parser_release(p);