Demo application for using the AT&T IoT Starter Kit Powered by AWS.
Dependencies: SDFileSystem
Fork of ATT_AWS_IoT_demo by
aws_iot_error.h
00001 /* 00002 * Copyright 2010-2015 Amazon.com, Inc. or its affiliates. All Rights Reserved. 00003 * 00004 * Licensed under the Apache License, Version 2.0 (the "License"). 00005 * You may not use this file except in compliance with the License. 00006 * A copy of the License is located at 00007 * 00008 * http://aws.amazon.com/apache2.0 00009 * 00010 * or in the "license" file accompanying this file. This file is distributed 00011 * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 00012 * express or implied. See the License for the specific language governing 00013 * permissions and limitations under the License. 00014 */ 00015 00016 /** 00017 * @file aws_iot_error.h 00018 * @brief Definition of error types for the SDK. 00019 */ 00020 00021 #ifndef AWS_IOT_SDK_SRC_IOT_ERROR_H_ 00022 #define AWS_IOT_SDK_SRC_IOT_ERROR_H_ 00023 00024 00025 /*! \public 00026 * @brief IoT Error enum 00027 * 00028 * Enumeration of return values from the IoT_* functions within the SDK. 00029 */ 00030 typedef enum { 00031 /** Return value of yield function to indicate auto-reconnect was successful */ 00032 RECONNECT_SUCCESSFUL = 1, 00033 /** Success return value - no error occurred. */ 00034 NONE_ERROR = 0, 00035 /** A generic error. A placeholder for a more specific error. */ 00036 GENERIC_ERROR = -1, 00037 /** A required parameter was passed as null. */ 00038 NULL_VALUE_ERROR = -2, 00039 /** A connection could not be established. */ 00040 CONNECTION_ERROR = -3, 00041 /** The subscribe failed. A SUBACK was not returned from the service. */ 00042 SUBSCRIBE_ERROR = -4, 00043 /** The publish failed. In the case of a QoS 1 message a PUBACK was not received. */ 00044 PUBLISH_ERROR = -5, 00045 /** The disconnect failed. The disconnect control packet could not be sent. */ 00046 DISCONNECT_ERROR = -6, 00047 /** An error occurred when yielding to the IoT MQTT client. A possible cause is an unexpected TCP socket disconnect. */ 00048 YIELD_ERROR = -7, 00049 /** The TCP socket could not be established. */ 00050 TCP_CONNECT_ERROR = -8, 00051 /** The TLS handshake failed. */ 00052 SSL_CONNECT_ERROR = -9, 00053 /** Error associated with setting up the parameters of a Socket */ 00054 TCP_SETUP_ERROR =-10, 00055 /** A timeout occurred while waiting for the TLS handshake to complete. */ 00056 SSL_CONNECT_TIMEOUT_ERROR = -11, 00057 /** A Generic write error based on the platform used */ 00058 SSL_WRITE_ERROR = -12, 00059 /** SSL initialization error at the TLS layer */ 00060 SSL_INIT_ERROR = -13, 00061 /** An error occurred when loading the certificates. The certificates could not be located or are incorrectly formatted. */ 00062 SSL_CERT_ERROR= -14, 00063 /** The unsubscribe failed. The unsubscribe control packet could not be sent. */ 00064 UNSUBSCRIBE_ERROR = -15, 00065 /** An error occurred while parsing the JSON string. Usually malformed JSON. */ 00066 JSON_PARSE_ERROR = -16, 00067 /** Shadow: The response Ack table is currently full waiting for previously published updates */ 00068 WAIT_FOR_PUBLISH = -17, 00069 /** SSL Write times out */ 00070 SSL_WRITE_TIMEOUT_ERROR = -18, 00071 /** SSL Read times out */ 00072 SSL_READ_TIMEOUT_ERROR = -19, 00073 /** A Generic error based on the platform used */ 00074 SSL_READ_ERROR = -20, 00075 /** Any time an snprintf writes more than size value, this error will be returned */ 00076 SHADOW_JSON_BUFFER_TRUNCATED = -21, 00077 /** Any time an snprintf encounters an encoding error or not enough space in the given buffer */ 00078 SHADOW_JSON_ERROR = -22, 00079 /** Returned when the Network is disconnected and reconnect is either disabled or physical layer is disconnected */ 00080 NETWORK_DISCONNECTED = -23, 00081 /** Returned when the Network is disconnected and the reconnect attempt has timed out */ 00082 NETWORK_RECONNECT_TIMED_OUT = -24, 00083 /** Returned when the Network is disconnected and the reconnect attempt is in progress */ 00084 NETWORK_ATTEMPTING_RECONNECT = -25, 00085 /** Returned when the Network is already connected and a connection attempt is made */ 00086 NETWORK_ALREADY_CONNECTED = -26, 00087 /** The MQTT RX buffer received corrupt message */ 00088 RX_MESSAGE_INVALID = -27, 00089 /** The MQTT RX buffer received a bigger message. The message will be dropped */ 00090 RX_MESSAGE_BIGGER_THAN_MQTT_RX_BUF = -28 00091 }IoT_Error_t; 00092 00093 #endif /* AWS_IOT_SDK_SRC_IOT_ERROR_H_ */ 00094 00095
Generated on Tue Jul 12 2022 22:13:20 by 1.7.2