this is fork and i will modify for STM32

Fork of AWS-test by Pierre-Marie Ancèle

Revision:
2:db59f45ad3d3
Parent:
0:cd5404401c2f
--- a/aws-iot/src/aws_iot_json_utils.cpp	Wed Apr 12 14:09:46 2017 +0200
+++ b/aws-iot/src/aws_iot_json_utils.cpp	Fri Aug 04 14:06:06 2017 +0900
@@ -64,7 +64,7 @@
 		return JSON_PARSE_ERROR;
 	}
 
-	return SUCCESS;
+	return IOT_SUCCESS;
 }
 
 IoT_Error_t parseUnsignedInteger16Value(uint16_t *i, const char *jsonString, jsmntok_t *token) {
@@ -79,7 +79,7 @@
 		return JSON_PARSE_ERROR;
 	}
 
-	return SUCCESS;
+	return IOT_SUCCESS;
 }
 
 IoT_Error_t parseUnsignedInteger8Value(uint8_t *i, const char *jsonString, jsmntok_t *token) {
@@ -94,7 +94,7 @@
 		return JSON_PARSE_ERROR;
 	}
 
-	return SUCCESS;
+	return IOT_SUCCESS;
 }
 
 IoT_Error_t parseInteger32Value(int32_t *i, const char *jsonString, jsmntok_t *token) {
@@ -108,7 +108,7 @@
 		return JSON_PARSE_ERROR;
 	}
 
-	return SUCCESS;
+	return IOT_SUCCESS;
 }
 
 IoT_Error_t parseInteger16Value(int16_t *i, const char *jsonString, jsmntok_t *token) {
@@ -122,7 +122,7 @@
 		return JSON_PARSE_ERROR;
 	}
 
-	return SUCCESS;
+	return IOT_SUCCESS;
 }
 
 IoT_Error_t parseInteger8Value(int8_t *i, const char *jsonString, jsmntok_t *token) {
@@ -137,7 +137,7 @@
 		return JSON_PARSE_ERROR;
 	}
 
-	return SUCCESS;
+	return IOT_SUCCESS;
 }
 
 IoT_Error_t parseFloatValue(float *f, const char *jsonString, jsmntok_t *token) {
@@ -151,7 +151,7 @@
 		return JSON_PARSE_ERROR;
 	}
 
-	return SUCCESS;
+	return IOT_SUCCESS;
 }
 
 IoT_Error_t parseDoubleValue(double *d, const char *jsonString, jsmntok_t *token) {
@@ -165,7 +165,7 @@
 		return JSON_PARSE_ERROR;
 	}
 
-	return SUCCESS;
+	return IOT_SUCCESS;
 }
 
 IoT_Error_t parseBooleanValue(bool *b, const char *jsonString, jsmntok_t *token) {
@@ -184,7 +184,7 @@
 		IOT_WARN("Token was not a bool.");
 		return JSON_PARSE_ERROR;
 	}
-	return SUCCESS;
+	return IOT_SUCCESS;
 }
 
 IoT_Error_t parseStringValue(char *buf, const char *jsonString, jsmntok_t *token) {
@@ -196,7 +196,7 @@
 	size = (uint16_t) (token->end - token->start);
 	memcpy(buf, jsonString + token->start, size);
 	buf[size] = '\0';
-	return SUCCESS;
+	return IOT_SUCCESS;
 }
 
 #ifdef __cplusplus