branch with improvemnts
Fork of M2XStreamClient by
Diff: StreamParseFunctions.h
- Revision:
- 2:7ea7ab05f120
- Parent:
- 0:f479e4f4db0e
- Child:
- 10:4ce9eba38dbe
diff -r f479e4f4db0e -r 7ea7ab05f120 StreamParseFunctions.h --- a/StreamParseFunctions.h Wed Feb 12 19:43:34 2014 +0000 +++ b/StreamParseFunctions.h Sun Sep 07 05:28:55 2014 +0000 @@ -3,7 +3,7 @@ // Data structures and functions used to parse stream values -#define STREAM_BUF_LEN 20 +#define STREAM_BUF_LEN 64 typedef struct { uint8_t state; @@ -45,7 +45,6 @@ { stream_parsing_context_state* state = (stream_parsing_context_state*) context->client_state; - if (TEST_IS_AT(state->state)) { strncpy(state->at_str, (const char*) token->start, MIN(token->end - token->start, STREAM_BUF_LEN));