ARM mbed M2X API Client: The ARM mbed client library is used to send/receive data to/from AT&T's M2X service from mbed LPC1768 microcontrollers.
Dependents: m2x-demo-all M2X_MTS_ACCEL_DEMO M2X_MTS_Accel M2X_K64F_ACCEL ... more
Revision 4:ba0d02be2835, committed 2014-09-07
- Comitter:
- NetArc
- Date:
- Sun Sep 07 17:56:18 2014 +0000
- Parent:
- 3:2b527486e864
- Child:
- 10:4ce9eba38dbe
- Commit message:
- no need for json underflow capture
Changed in this revision
M2XStreamClient.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- 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);