Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependents: WNCInterface_M2Xdemo ATT_WNCInterface_Info WNCInterface_HTTP_example Public_IoT_M2X_Cellular_Demo
Fork of M2XStreamClient by
Diff: M2XStreamClient.cpp
- Revision:
- 4:ba0d02be2835
- Parent:
- 2:7ea7ab05f120
- Child:
- 10:4ce9eba38dbe
diff -r 2b527486e864 -r ba0d02be2835 M2XStreamClient.cpp
--- 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);
