Skip to content

Commit 6218d45

Browse files
author
ZENG
committed
Fixes #3 #6
1 parent 2e80e59 commit 6218d45

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

63 files changed

+3764
-1211
lines changed

AWS-IoT-Arduino-Yun-Library/aws_iot_config_SDK.h

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2010-2015 Amazon.com, Inc. or its affiliates. All Rights Reserved.
2+
* Copyright 2010-2016 Amazon.com, Inc. or its affiliates. All Rights Reserved.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License").
55
* You may not use this file except in compliance with the License.
@@ -19,6 +19,5 @@
1919
#define MAX_BUF_SIZE 256 // maximum number of bytes to publish/receive
2020
#define MAX_SUB 15 // maximum number of subscribe
2121
#define CMD_TIME_OUT 100 // maximum time to wait for feedback from AR9331, 100 = 10 sec
22-
#define MAX_SHADOW_TOPIC_LEN 64 // maximum length for shadow topic, the metadata length for shadow topic is 32, make sure your thing name length plus that does not exceed this limit
2322

2423
#endif

AWS-IoT-Arduino-Yun-Library/aws_iot_error.h

Lines changed: 33 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2010-2015 Amazon.com, Inc. or its affiliates. All Rights Reserved.
2+
* Copyright 2010-2016 Amazon.com, Inc. or its affiliates. All Rights Reserved.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License").
55
* You may not use this file except in compliance with the License.
@@ -21,20 +21,38 @@ typedef enum {
2121
GENERIC_ERROR = -1,
2222
NULL_VALUE_ERROR = -2,
2323
OVERFLOW_ERROR = -3,
24-
SET_UP_ERROR = -4,
25-
CONNECT_ERROR = -5,
26-
PUBLISH_ERROR = -6,
27-
SUBSCRIBE_ERROR = -7,
28-
UNSUBSCRIBE_ERROR = -8,
29-
YIELD_ERROR = -9,
30-
DISCONNECT_ERROR = -10,
31-
SHADOW_INIT_ERROR = -11,
32-
SHADOW_UPDATE_ERROR = -12,
33-
SHADOW_GET_ERROR = -13,
34-
SHADOW_DELETE_ERROR = -14,
35-
CONFIG_ERROR = -15,
36-
OUT_OF_SKETCH_SUBSCRIBE_MEMORY = -16,
37-
SERIAL1_COMMUNICATION_ERROR = -17
24+
OUT_OF_SKETCH_SUBSCRIBE_MEMORY = -4,
25+
SERIAL1_COMMUNICATION_ERROR = -5,
26+
SET_UP_ERROR = -6,
27+
NO_SET_UP_ERROR = -7,
28+
WRONG_PARAMETER_ERROR = -8,
29+
CONFIG_GENERIC_ERROR = -9,
30+
CONNECT_SSL_ERROR = -10,
31+
CONNECT_ERROR = -11,
32+
CONNECT_TIMEOUT = -12,
33+
CONNECT_CREDENTIAL_NOT_FOUND = -13,
34+
CONNECT_GENERIC_ERROR = -14,
35+
PUBLISH_ERROR = -15,
36+
PUBLISH_TIMEOUT = -16,
37+
PUBLISH_GENERIC_ERROR = -17,
38+
SUBSCRIBE_ERROR = -18,
39+
SUBSCRIBE_TIMEOUT = -19,
40+
SUBSCRIBE_GENERIC_ERROR = -20,
41+
UNSUBSCRIBE_ERROR = -21,
42+
UNSUBSCRIBE_TIMEOUT = -22,
43+
UNSUBSCRIBE_GENERIC_ERROR = -23,
44+
DISCONNECT_ERROR = -24,
45+
DISCONNECT_TIMEOUT = -25,
46+
DISCONNECT_GENERIC_ERROR = -26,
47+
SHADOW_INIT_ERROR = -27,
48+
NO_SHADOW_INIT_ERROR = -28,
49+
SHADOW_GET_GENERIC_ERROR = -29,
50+
SHADOW_UPDATE_GENERIC_ERROR = -30,
51+
SHADOW_UPDATE_INVALID_JSON_ERROR = -31,
52+
SHADOW_DELETE_GENERIC_ERROR = -32,
53+
SHADOW_REGISTER_DELTA_CALLBACK_GENERIC_ERROR = -33,
54+
SHADOW_UNREGISTER_DELTA_CALLBACK_GENERIC_ERROR = -34,
55+
YIELD_ERROR = -35
3856
} IoT_Error_t;
3957

4058
#endif

0 commit comments

Comments
 (0)