Example

Dependencies:   FXAS21002 FXOS8700Q

Committer:
maygup01
Date:
Tue Nov 19 09:49:38 2019 +0000
Revision:
0:11cc2b7889af
Example

Who changed what in which revision?

UserRevisionLine numberNew contents of line
maygup01 0:11cc2b7889af 1 /*
maygup01 0:11cc2b7889af 2 * Copyright (c) 2015 ARM Limited. All rights reserved.
maygup01 0:11cc2b7889af 3 * SPDX-License-Identifier: Apache-2.0
maygup01 0:11cc2b7889af 4 * Licensed under the Apache License, Version 2.0 (the License); you may
maygup01 0:11cc2b7889af 5 * not use this file except in compliance with the License.
maygup01 0:11cc2b7889af 6 * You may obtain a copy of the License at
maygup01 0:11cc2b7889af 7 *
maygup01 0:11cc2b7889af 8 * http://www.apache.org/licenses/LICENSE-2.0
maygup01 0:11cc2b7889af 9 *
maygup01 0:11cc2b7889af 10 * Unless required by applicable law or agreed to in writing, software
maygup01 0:11cc2b7889af 11 * distributed under the License is distributed on an AS IS BASIS, WITHOUT
maygup01 0:11cc2b7889af 12 * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
maygup01 0:11cc2b7889af 13 * See the License for the specific language governing permissions and
maygup01 0:11cc2b7889af 14 * limitations under the License.
maygup01 0:11cc2b7889af 15 */
maygup01 0:11cc2b7889af 16 #ifndef COAP_RESPONSE_H
maygup01 0:11cc2b7889af 17 #define COAP_RESPONSE_H
maygup01 0:11cc2b7889af 18
maygup01 0:11cc2b7889af 19 /*! \file coap_response.h
maygup01 0:11cc2b7889af 20 * \brief CoAP response code values.
maygup01 0:11cc2b7889af 21 */
maygup01 0:11cc2b7889af 22
maygup01 0:11cc2b7889af 23 // Note: Don't put any C++ code into this file as this file is included from C sources.
maygup01 0:11cc2b7889af 24
maygup01 0:11cc2b7889af 25 // These values are COAP response codes. See https://tools.ietf.org/html/rfc7252#section-5.9.1
maygup01 0:11cc2b7889af 26 typedef enum {
maygup01 0:11cc2b7889af 27 COAP_RESPONSE_CREATED = 65,
maygup01 0:11cc2b7889af 28 COAP_RESPONSE_DELETED = 66,
maygup01 0:11cc2b7889af 29 COAP_RESPONSE_VALID = 67,
maygup01 0:11cc2b7889af 30 COAP_RESPONSE_CHANGED = 68,
maygup01 0:11cc2b7889af 31 COAP_RESPONSE_CONTENT = 69,
maygup01 0:11cc2b7889af 32 COAP_RESPONSE_CONTINUE = 95,
maygup01 0:11cc2b7889af 33 COAP_RESPONSE_BAD_REQUEST = 128,
maygup01 0:11cc2b7889af 34 COAP_RESPONSE_UNAUTHORIZED = 129,
maygup01 0:11cc2b7889af 35 COAP_RESPONSE_BAD_OPTION = 130,
maygup01 0:11cc2b7889af 36 COAP_RESPONSE_FORBIDDEN = 131,
maygup01 0:11cc2b7889af 37 COAP_RESPONSE_NOT_FOUND = 132,
maygup01 0:11cc2b7889af 38 COAP_RESPONSE_METHOD_NOT_ALLOWED = 133,
maygup01 0:11cc2b7889af 39 COAP_RESPONSE_NOT_ACCEPTABLE = 134,
maygup01 0:11cc2b7889af 40 COAP_RESPONSE_REQUEST_ENTITY_INCOMPLETE = 136,
maygup01 0:11cc2b7889af 41 COAP_RESPONSE_PRECONDITION_FAILED = 140,
maygup01 0:11cc2b7889af 42 COAP_RESPONSE_REQUEST_ENTITY_TOO_LARGE = 141,
maygup01 0:11cc2b7889af 43 COAP_RESPONSE_UNSUPPORTED_CONTENT_FORMAT = 143,
maygup01 0:11cc2b7889af 44 COAP_RESPONSE_INTERNAL_SERVER_ERROR = 160,
maygup01 0:11cc2b7889af 45 COAP_RESPONSE_NOT_IMPLEMENTED = 161,
maygup01 0:11cc2b7889af 46 COAP_RESPONSE_BAD_GATEWAY = 162,
maygup01 0:11cc2b7889af 47 COAP_RESPONSE_SERVICE_UNAVAILABLE = 163,
maygup01 0:11cc2b7889af 48 COAP_RESPONSE_GATEWAY_TIMEOUT = 164,
maygup01 0:11cc2b7889af 49 COAP_RESPONSE_PROXYING_NOT_SUPPORTED = 165
maygup01 0:11cc2b7889af 50 } coap_response_code_e;
maygup01 0:11cc2b7889af 51 #endif