mbed client on ethernet with LWIP

Dependencies:   mbed Socket lwip-eth lwip-sys lwip

Fork of mbed-client-classic-example-lwip by sandbox

Committer:
mbedAustin
Date:
Thu Jun 09 17:08:36 2016 +0000
Revision:
11:cada08fc8a70
Commit for public Consumption

Who changed what in which revision?

UserRevisionLine numberNew contents of line
mbedAustin 11:cada08fc8a70 1 /*
mbedAustin 11:cada08fc8a70 2 * Copyright (c) 2015 ARM Limited. All rights reserved.
mbedAustin 11:cada08fc8a70 3 * SPDX-License-Identifier: Apache-2.0
mbedAustin 11:cada08fc8a70 4 * Licensed under the Apache License, Version 2.0 (the License); you may
mbedAustin 11:cada08fc8a70 5 * not use this file except in compliance with the License.
mbedAustin 11:cada08fc8a70 6 * You may obtain a copy of the License at
mbedAustin 11:cada08fc8a70 7 *
mbedAustin 11:cada08fc8a70 8 * http://www.apache.org/licenses/LICENSE-2.0
mbedAustin 11:cada08fc8a70 9 *
mbedAustin 11:cada08fc8a70 10 * Unless required by applicable law or agreed to in writing, software
mbedAustin 11:cada08fc8a70 11 * distributed under the License is distributed on an AS IS BASIS, WITHOUT
mbedAustin 11:cada08fc8a70 12 * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
mbedAustin 11:cada08fc8a70 13 * See the License for the specific language governing permissions and
mbedAustin 11:cada08fc8a70 14 * limitations under the License.
mbedAustin 11:cada08fc8a70 15 */
mbedAustin 11:cada08fc8a70 16 #include "mbed-client/m2mconstants.h"
mbedAustin 11:cada08fc8a70 17 const String COAP = "coap://";
mbedAustin 11:cada08fc8a70 18
mbedAustin 11:cada08fc8a70 19 // PUT attributes to be checked from server
mbedAustin 11:cada08fc8a70 20 const String EQUAL = "=";
mbedAustin 11:cada08fc8a70 21 const String AMP = "&";
mbedAustin 11:cada08fc8a70 22 const String PMIN = "pmin";
mbedAustin 11:cada08fc8a70 23 const String PMAX = "pmax";
mbedAustin 11:cada08fc8a70 24 const String GT = "gt";
mbedAustin 11:cada08fc8a70 25 const String LT = "lt";
mbedAustin 11:cada08fc8a70 26 const String ST = "st";
mbedAustin 11:cada08fc8a70 27 const String CANCEL = "cancel";
mbedAustin 11:cada08fc8a70 28
mbedAustin 11:cada08fc8a70 29
mbedAustin 11:cada08fc8a70 30 //LWM2MOBJECT NAME/ID
mbedAustin 11:cada08fc8a70 31 const String M2M_SECURITY_ID = "0";
mbedAustin 11:cada08fc8a70 32 const String M2M_SERVER_ID = "1";
mbedAustin 11:cada08fc8a70 33 const String M2M_ACCESS_CONTROL_ID = "2";
mbedAustin 11:cada08fc8a70 34 const String M2M_DEVICE_ID = "3";
mbedAustin 11:cada08fc8a70 35
mbedAustin 11:cada08fc8a70 36 const String M2M_CONNECTIVITY_MONITOR_ID = "4";
mbedAustin 11:cada08fc8a70 37 const String M2M_FIRMWARE_ID = "5";
mbedAustin 11:cada08fc8a70 38 const String M2M_LOCATION_ID = "6";
mbedAustin 11:cada08fc8a70 39 const String M2M_CONNECTIVITY_STATISTICS_ID = "7";
mbedAustin 11:cada08fc8a70 40 const String RESERVED_ID = "8";
mbedAustin 11:cada08fc8a70 41
mbedAustin 11:cada08fc8a70 42 //OMA RESOURCE TYPE
mbedAustin 11:cada08fc8a70 43 const String OMA_RESOURCE_TYPE = ""; //oma.lwm2m
mbedAustin 11:cada08fc8a70 44
mbedAustin 11:cada08fc8a70 45 //DEVICE RESOURCES
mbedAustin 11:cada08fc8a70 46 const String DEVICE_MANUFACTURER = "0";
mbedAustin 11:cada08fc8a70 47 const String DEVICE_DEVICE_TYPE = "17";
mbedAustin 11:cada08fc8a70 48 const String DEVICE_MODEL_NUMBER = "1";
mbedAustin 11:cada08fc8a70 49 const String DEVICE_SERIAL_NUMBER = "2";
mbedAustin 11:cada08fc8a70 50 const String DEVICE_HARDWARE_VERSION = "18";
mbedAustin 11:cada08fc8a70 51 const String DEVICE_FIRMWARE_VERSION = "3";
mbedAustin 11:cada08fc8a70 52 const String DEVICE_SOFTWARE_VERSION = "19";
mbedAustin 11:cada08fc8a70 53 const String DEVICE_REBOOT = "4";
mbedAustin 11:cada08fc8a70 54 const String DEVICE_FACTORY_RESET = "5";
mbedAustin 11:cada08fc8a70 55 const String DEVICE_AVAILABLE_POWER_SOURCES = "6";
mbedAustin 11:cada08fc8a70 56 const String DEVICE_POWER_SOURCE_VOLTAGE = "7";
mbedAustin 11:cada08fc8a70 57 const String DEVICE_POWER_SOURCE_CURRENT = "8";
mbedAustin 11:cada08fc8a70 58 const String DEVICE_BATTERY_LEVEL = "9";
mbedAustin 11:cada08fc8a70 59 const String DEVICE_BATTERY_STATUS = "20";
mbedAustin 11:cada08fc8a70 60 const String DEVICE_MEMORY_FREE = "10";
mbedAustin 11:cada08fc8a70 61 const String DEVICE_MEMORY_TOTAL = "21";
mbedAustin 11:cada08fc8a70 62 const String DEVICE_ERROR_CODE = "11";
mbedAustin 11:cada08fc8a70 63 const String DEVICE_RESET_ERROR_CODE = "12";
mbedAustin 11:cada08fc8a70 64 const String DEVICE_CURRENT_TIME = "13";
mbedAustin 11:cada08fc8a70 65 const String DEVICE_UTC_OFFSET = "14";
mbedAustin 11:cada08fc8a70 66 const String DEVICE_TIMEZONE = "15";
mbedAustin 11:cada08fc8a70 67 const String DEVICE_SUPPORTED_BINDING_MODE = "16";
mbedAustin 11:cada08fc8a70 68
mbedAustin 11:cada08fc8a70 69 const String BINDING_MODE_UDP = "U";
mbedAustin 11:cada08fc8a70 70 const String BINDING_MODE_UDP_QUEUE = "UQ";
mbedAustin 11:cada08fc8a70 71 const String BINDING_MODE_SMS = "S";
mbedAustin 11:cada08fc8a70 72 const String BINDING_MODE_SMS_QUEUE = "SQ";
mbedAustin 11:cada08fc8a70 73
mbedAustin 11:cada08fc8a70 74 const String ERROR_CODE_VALUE = "0";
mbedAustin 11:cada08fc8a70 75
mbedAustin 11:cada08fc8a70 76
mbedAustin 11:cada08fc8a70 77
mbedAustin 11:cada08fc8a70 78 //SECURITY RESOURCES
mbedAustin 11:cada08fc8a70 79 const String SECURITY_M2M_SERVER_URI = "0";
mbedAustin 11:cada08fc8a70 80 const String SECURITY_BOOTSTRAP_SERVER = "1";
mbedAustin 11:cada08fc8a70 81 const String SECURITY_SECURITY_MODE = "2";
mbedAustin 11:cada08fc8a70 82 const String SECURITY_PUBLIC_KEY = "3";
mbedAustin 11:cada08fc8a70 83 const String SECURITY_SERVER_PUBLIC_KEY = "4";
mbedAustin 11:cada08fc8a70 84 const String SECURITY_SECRET_KEY = "5";
mbedAustin 11:cada08fc8a70 85 const String SECURITY_SMS_SECURITY_MODE = "6";
mbedAustin 11:cada08fc8a70 86 const String SECURITY_SMS_BINDING_KEY = "7";
mbedAustin 11:cada08fc8a70 87 const String SECURITY_SMS_BINDING_SECRET_KEY = "8";
mbedAustin 11:cada08fc8a70 88 const String SECURITY_M2M_SERVER_SMS_NUMBER = "9";
mbedAustin 11:cada08fc8a70 89 const String SECURITY_SHORT_SERVER_ID = "10";
mbedAustin 11:cada08fc8a70 90 const String SECURITY_CLIENT_HOLD_OFF_TIME = "11";
mbedAustin 11:cada08fc8a70 91
mbedAustin 11:cada08fc8a70 92 //SERVER RESOURCES
mbedAustin 11:cada08fc8a70 93 const String SERVER_SHORT_SERVER_ID = "0";
mbedAustin 11:cada08fc8a70 94 const String SERVER_LIFETIME = "1";
mbedAustin 11:cada08fc8a70 95 const String SERVER_DEFAULT_MIN_PERIOD = "2";
mbedAustin 11:cada08fc8a70 96 const String SERVER_DEFAULT_MAX_PERIOD = "3";
mbedAustin 11:cada08fc8a70 97 const String SERVER_DISABLE = "4";
mbedAustin 11:cada08fc8a70 98 const String SERVER_DISABLE_TIMEOUT = "5";
mbedAustin 11:cada08fc8a70 99 const String SERVER_NOTIFICATION_STORAGE = "6";
mbedAustin 11:cada08fc8a70 100 const String SERVER_BINDING = "7";
mbedAustin 11:cada08fc8a70 101 const String SERVER_REGISTRATION_UPDATE = "8";
mbedAustin 11:cada08fc8a70 102
mbedAustin 11:cada08fc8a70 103 //FIRMWARE RESOURCES
mbedAustin 11:cada08fc8a70 104 const String FIRMWARE_PACKAGE = "0";
mbedAustin 11:cada08fc8a70 105 const String FIRMWARE_PACKAGE_URI = "1";
mbedAustin 11:cada08fc8a70 106 const String FIRMWARE_UPDATE = "2";
mbedAustin 11:cada08fc8a70 107 const String FIRMWARE_STATE = "3";
mbedAustin 11:cada08fc8a70 108 const String FIRMWARE_UPDATE_SUPPORTED_OBJECTS = "4";
mbedAustin 11:cada08fc8a70 109 const String FIRMWARE_UPDATE_RESULT = "5";
mbedAustin 11:cada08fc8a70 110 const String FIRMWARE_PACKAGE_NAME = "6";
mbedAustin 11:cada08fc8a70 111 const String FIRMWARE_PACKAGE_VERSION = "7";