Skip to content

Commit 8206cb2

Browse files
huguesBouvierGordon Wang
authored and
Gordon Wang
committed
Release v2.3.0.
1 parent 77f657e commit 8206cb2

File tree

6 files changed

+45
-16
lines changed

6 files changed

+45
-16
lines changed

CHANGELOG.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,17 @@
11
# Change Log
2+
## [2.3.0](https://github.com/aws/aws-iot-device-sdk-embedded-C/releases/tag/v2.3.0) (Mar 21, 2018)
3+
4+
New Features:
5+
6+
- Add [AWS IoT Jobs](https://docs.aws.amazon.com/iot/latest/developerguide/iot-jobs.html) support.
7+
- Use AWS IoT Core support for MQTT over port 443. MQTT connection now defaults to port 443.
8+
9+
Pull requests:
10+
11+
- [#124](https://github.com/aws/aws-iot-device-sdk-embedded-C/pull/124) - Thing Shadow: Fix potential shadow buffer overflow
12+
- [#135](https://github.com/aws/aws-iot-device-sdk-embedded-C/pull/135) - mbedtls_wrap: Fix unintialized variable usage
13+
- Fix bugs in long-running integration tests.
14+
215
## [2.2.1](https://github.com/aws/aws-iot-device-sdk-embedded-C/releases/tag/v2.2.1) (Dec 26, 2017)
316

417
Bugfixes:

Makefile

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -55,11 +55,11 @@ TLS_LIB_DIR = $(TEMP_MBEDTLS_SRC_DIR)
5555
TLS_INCLUDE_DIR = -I $(TEMP_MBEDTLS_SRC_DIR)
5656

5757
# Logging level control
58-
LOG_FLAGS += -DENABLE_IOT_DEBUG
58+
#LOG_FLAGS += -DENABLE_IOT_DEBUG
5959
#LOG_FLAGS += -DENABLE_IOT_TRACE
60-
LOG_FLAGS += -DENABLE_IOT_INFO
61-
LOG_FLAGS += -DENABLE_IOT_WARN
62-
LOG_FLAGS += -DENABLE_IOT_ERROR
60+
#LOG_FLAGS += -DENABLE_IOT_INFO
61+
#LOG_FLAGS += -DENABLE_IOT_WARN
62+
#LOG_FLAGS += -DENABLE_IOT_ERROR
6363
COMPILER_FLAGS += $(LOG_FLAGS)
6464

6565
EXTERNAL_LIBS += -L$(CPPUTEST_BUILD_LIB)
@@ -128,4 +128,4 @@ clean:
128128
$(RM) -rf build_output
129129
$(RM) -rf gcov
130130
$(RM) -rf objs
131-
$(RM) -rf testLibs
131+
$(RM) -rf testLibs

include/aws_iot_version.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,11 +35,11 @@
3535
/**
3636
* @brief MINOR version when functionality is added in a backwards-compatible manner.
3737
*/
38-
#define VERSION_MINOR 2
38+
#define VERSION_MINOR 3
3939
/**
4040
* @brief PATCH version when backwards-compatible bug fixes are made.
4141
*/
42-
#define VERSION_PATCH 1
42+
#define VERSION_PATCH 0
4343
/**
4444
* @brief TAG is an (optional) tag appended to the version if a more descriptive verion is needed.
4545
*/

src/aws_iot_mqtt_client_common_internal.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -315,7 +315,7 @@ IoT_Error_t aws_iot_mqtt_internal_send_packet(AWS_IoT_Client *pClient, size_t le
315315
FUNC_EXIT_RC(SUCCESS);
316316
}
317317

318-
FUNC_EXIT_RC(FAILURE);
318+
FUNC_EXIT_RC(rc)
319319
}
320320

321321
static IoT_Error_t _aws_iot_mqtt_internal_decode_packet_remaining_len(AWS_IoT_Client *pClient,

tests/integration/Makefile

Lines changed: 15 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -31,9 +31,9 @@ LD_FLAG += -ldl $(TLS_LIB_DIR)/libmbedtls.a $(TLS_LIB_DIR)/libmbedcrypto.a $(TLS
3131
# Logging level control
3232
#LOG_FLAGS += -DENABLE_IOT_DEBUG
3333
#LOG_FLAGS += -DENABLE_IOT_TRACE
34-
LOG_FLAGS += -DENABLE_IOT_INFO
35-
LOG_FLAGS += -DENABLE_IOT_WARN
36-
LOG_FLAGS += -DENABLE_IOT_ERROR
34+
#LOG_FLAGS += -DENABLE_IOT_INFO
35+
#LOG_FLAGS += -DENABLE_IOT_WARN
36+
#LOG_FLAGS += -DENABLE_IOT_ERROR
3737
COMPILER_FLAGS += $(LOG_FLAGS)
3838

3939
#IoT client directory
@@ -68,7 +68,7 @@ COMPILER_FLAGS += -g
6868
COMPILER_FLAGS += $(LOG_FLAGS)
6969
PRE_MAKE_CMDS += cd $(TEMP_MBEDTLS_SRC_DIR) && make
7070

71-
MAKE_CMD = $(CC) $(SRC_FILES) $(COMPILER_FLAGS) -g3 -o $(APP_DIR)/$(APP_NAME) $(EXTERNAL_LIBS) $(LD_FLAG) $(INCLUDE_ALL_DIRS);
71+
MAKE_CMD = $(CC) $(SRC_FILES) $(COMPILER_FLAGS) -g3 -D_ENABLE_THREAD_SUPPORT_ -o $(APP_DIR)/$(APP_NAME) $(EXTERNAL_LIBS) $(LD_FLAG) $(INCLUDE_ALL_DIRS);
7272
MAKE_MT_CMD = $(CC) $(MT_SRC_FILES) $(COMPILER_FLAGS) -g3 -D_ENABLE_THREAD_SUPPORT_ -o $(APP_DIR)/$(MT_APP_NAME) $(EXTERNAL_LIBS) $(LD_FLAG) $(INCLUDE_ALL_DIRS);
7373

7474
ifeq ($(CODE_SIZE_ENABLE),Y)
@@ -89,9 +89,19 @@ all:
8989
./$(MT_APP_NAME)
9090
$(POST_MAKE_CMDS)
9191

92+
app:
93+
$(PRE_MAKE_CMDS)
94+
$(DEBUG)$(MAKE_CMD)
95+
$(DEBUG)$(MAKE_MT_CMD)
96+
97+
tests:
98+
./$(APP_NAME)
99+
./$(MT_APP_NAME)
100+
$(POST_MAKE_CMDS)
101+
92102
clean:
93103
$(RM) -f $(APP_DIR)/$(APP_NAME)
94104
$(RM) -f $(APP_DIR)/$(MT_APP_NAME)
95105
$(CLEAN_CMD)
96106

97-
ALL_TARGETS_CLEAN += test-integration-assert-clean
107+
ALL_TARGETS_CLEAN += test-integration-assert-clean

tests/integration/src/aws_iot_test_auto_reconnect.c

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -145,10 +145,11 @@ int aws_iot_mqtt_tests_auto_reconnect() {
145145
printf("Failure to invoke Disconnect Handler\n");
146146
return -1;
147147
}
148-
aws_iot_mqtt_tests_unblock_tls_connect();
148+
149149
terminate_yield_with_rc_thread = true;
150150
pthread_join(yield_thread, NULL);
151-
151+
aws_iot_mqtt_tests_unblock_tls_connect();
152+
152153
/*
153154
* Manual Reconnect Test
154155
*/
@@ -175,7 +176,8 @@ int aws_iot_mqtt_tests_auto_reconnect() {
175176
}
176177
}
177178
terminate_yield_with_rc_thread = true;
178-
179+
pthread_join(yield_thread, NULL);
180+
179181
/*
180182
* Auto Reconnect Test
181183
*/
@@ -224,6 +226,10 @@ int aws_iot_mqtt_tests_auto_reconnect() {
224226
return -6;
225227
}
226228
}
229+
230+
terminate_yield_with_rc_thread = true;
231+
pthread_join(yield_thread, NULL);
232+
227233
if(true == aws_iot_mqtt_is_client_connected(&client)) {
228234
printf("Success: is Mqtt connected api\n");
229235
} else {

0 commit comments

Comments
 (0)