Demo application for using the AT&T IoT Starter Kit Powered by AWS.
Dependencies: SDFileSystem
Fork of ATT_AWS_IoT_demo by
MQTTReturnCodes.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 MQTTErrorCodes.h 00018 * @brief Definition of error types for the MQTT Client 00019 */ 00020 00021 #ifndef __MQTT_ERRORCODES_H 00022 #define __MQTT_ERRORCODES_H 00023 00024 /* all failure return codes must be negative */ 00025 typedef enum { 00026 MQTT_NETWORK_MANUALLY_DISCONNECTED = 5, 00027 MQTT_CONNACK_CONNECTION_ACCEPTED = 4, 00028 MQTT_ATTEMPTING_RECONNECT = 3, 00029 MQTT_NOTHING_TO_READ = 2, 00030 MQTT_NETWORK_RECONNECTED = 1, 00031 SUCCESS = 0, 00032 FAILURE = -1, 00033 BUFFER_OVERFLOW = -2, 00034 MQTT_UNKNOWN_ERROR = -3, 00035 MQTT_NETWORK_DISCONNECTED_ERROR = -4, 00036 MQTT_NETWORK_ALREADY_CONNECTED_ERROR = -5, 00037 MQTT_NULL_VALUE_ERROR = -6, 00038 MQTT_MAX_SUBSCRIPTIONS_REACHED_ERROR = -7, 00039 MQTT_RECONNECT_TIMED_OUT = -8, 00040 MQTTPACKET_BUFFER_TOO_SHORT = -9, 00041 MQTTPACKET_READ_ERROR = -10, 00042 MQTTPACKET_READ_COMPLETE = -11, 00043 MQTT_CONNACK_UNKNOWN_ERROR = -12, 00044 MQTT_CONANCK_UNACCEPTABLE_PROTOCOL_VERSION_ERROR = -13, 00045 MQTT_CONNACK_IDENTIFIER_REJECTED_ERROR = -14, 00046 MQTT_CONNACK_SERVER_UNAVAILABLE_ERROR = -15, 00047 MQTT_CONNACK_BAD_USERDATA_ERROR = -16, 00048 MQTT_CONNACK_NOT_AUTHORIZED_ERROR = -17, 00049 MQTT_BUFFER_RX_MESSAGE_INVALID = -18 00050 }MQTTReturnCode; 00051 00052 #endif //__MQTT_ERRORCODES_H 00053 00054
Generated on Tue Jul 12 2022 22:13:21 by 1.7.2