This is a fork due to permission issues

Dependencies:   mbed Socket lwip-eth lwip-sys lwip

Fork of 6_songs-from-the-cloud by MakingMusicWorkshop

Committer:
maclobdell
Date:
Wed May 18 19:06:32 2016 +0000
Revision:
0:f7c60d3e7b8a
clean version

Who changed what in which revision?

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