Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Fork of mbed-client by
m2mconstants.cpp
00001 /* 00002 * Copyright (c) 2015 ARM Limited. All rights reserved. 00003 * SPDX-License-Identifier: Apache-2.0 00004 * Licensed under the Apache License, Version 2.0 (the License); you may 00005 * not use this file except in compliance with the License. 00006 * You may obtain a copy of the License at 00007 * 00008 * http://www.apache.org/licenses/LICENSE-2.0 00009 * 00010 * Unless required by applicable law or agreed to in writing, software 00011 * distributed under the License is distributed on an AS IS BASIS, WITHOUT 00012 * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 00013 * See the License for the specific language governing permissions and 00014 * limitations under the License. 00015 */ 00016 #include "mbed-client/m2mconstants.h" 00017 const String COAP = "coap://"; 00018 const String COAPS = "coaps://"; 00019 00020 // PUT attributes to be checked from server 00021 const String EQUAL = "="; 00022 const String AMP = "&"; 00023 const String PMIN = "pmin"; 00024 const String PMAX = "pmax"; 00025 const String GT = "gt"; 00026 const String LT = "lt"; 00027 const String ST = "st"; 00028 const String STP = "stp"; 00029 const String CANCEL = "cancel"; 00030 00031 00032 //LWM2MOBJECT NAME/ID 00033 const String M2M_SECURITY_ID = "0"; 00034 const String M2M_SERVER_ID = "1"; 00035 const String M2M_ACCESS_CONTROL_ID = "2"; 00036 const String M2M_DEVICE_ID = "3"; 00037 00038 const String M2M_CONNECTIVITY_MONITOR_ID = "4"; 00039 const String M2M_FIRMWARE_ID = "5"; 00040 const String M2M_LOCATION_ID = "6"; 00041 const String M2M_CONNECTIVITY_STATISTICS_ID = "7"; 00042 const String RESERVED_ID = "8"; 00043 00044 //OMA RESOURCE TYPE 00045 const String OMA_RESOURCE_TYPE = ""; //oma.lwm2m 00046 00047 //DEVICE RESOURCES 00048 const String DEVICE_MANUFACTURER = "0"; 00049 const String DEVICE_DEVICE_TYPE = "17"; 00050 const String DEVICE_MODEL_NUMBER = "1"; 00051 const String DEVICE_SERIAL_NUMBER = "2"; 00052 const String DEVICE_HARDWARE_VERSION = "18"; 00053 const String DEVICE_FIRMWARE_VERSION = "3"; 00054 const String DEVICE_SOFTWARE_VERSION = "19"; 00055 const String DEVICE_REBOOT = "4"; 00056 const String DEVICE_FACTORY_RESET = "5"; 00057 const String DEVICE_AVAILABLE_POWER_SOURCES = "6"; 00058 const String DEVICE_POWER_SOURCE_VOLTAGE = "7"; 00059 const String DEVICE_POWER_SOURCE_CURRENT = "8"; 00060 const String DEVICE_BATTERY_LEVEL = "9"; 00061 const String DEVICE_BATTERY_STATUS = "20"; 00062 const String DEVICE_MEMORY_FREE = "10"; 00063 const String DEVICE_MEMORY_TOTAL = "21"; 00064 const String DEVICE_ERROR_CODE = "11"; 00065 const String DEVICE_RESET_ERROR_CODE = "12"; 00066 const String DEVICE_CURRENT_TIME = "13"; 00067 const String DEVICE_UTC_OFFSET = "14"; 00068 const String DEVICE_TIMEZONE = "15"; 00069 const String DEVICE_SUPPORTED_BINDING_MODE = "16"; 00070 00071 const String BINDING_MODE_UDP = "U"; 00072 const String BINDING_MODE_UDP_QUEUE = "UQ"; 00073 const String BINDING_MODE_SMS = "S"; 00074 const String BINDING_MODE_SMS_QUEUE = "SQ"; 00075 00076 const String ERROR_CODE_VALUE = "0"; 00077 00078 00079 00080 //SECURITY RESOURCES 00081 const String SECURITY_M2M_SERVER_URI = "0"; 00082 const String SECURITY_BOOTSTRAP_SERVER = "1"; 00083 const String SECURITY_SECURITY_MODE = "2"; 00084 const String SECURITY_PUBLIC_KEY = "3"; 00085 const String SECURITY_SERVER_PUBLIC_KEY = "4"; 00086 const String SECURITY_SECRET_KEY = "5"; 00087 const String SECURITY_SMS_SECURITY_MODE = "6"; 00088 const String SECURITY_SMS_BINDING_KEY = "7"; 00089 const String SECURITY_SMS_BINDING_SECRET_KEY = "8"; 00090 const String SECURITY_M2M_SERVER_SMS_NUMBER = "9"; 00091 const String SECURITY_SHORT_SERVER_ID = "10"; 00092 const String SECURITY_CLIENT_HOLD_OFF_TIME = "11"; 00093 00094 //SERVER RESOURCES 00095 const String SERVER_SHORT_SERVER_ID = "0"; 00096 const String SERVER_LIFETIME = "1"; 00097 const String SERVER_DEFAULT_MIN_PERIOD = "2"; 00098 const String SERVER_DEFAULT_MAX_PERIOD = "3"; 00099 const String SERVER_DISABLE = "4"; 00100 const String SERVER_DISABLE_TIMEOUT = "5"; 00101 const String SERVER_NOTIFICATION_STORAGE = "6"; 00102 const String SERVER_BINDING = "7"; 00103 const String SERVER_REGISTRATION_UPDATE = "8"; 00104 00105 //FIRMWARE RESOURCES 00106 const String FIRMWARE_PACKAGE = "0"; 00107 const String FIRMWARE_PACKAGE_URI = "1"; 00108 const String FIRMWARE_UPDATE = "2"; 00109 const String FIRMWARE_STATE = "3"; 00110 const String FIRMWARE_UPDATE_SUPPORTED_OBJECTS = "4"; 00111 const String FIRMWARE_UPDATE_RESULT = "5"; 00112 const String FIRMWARE_PACKAGE_NAME = "6"; 00113 const String FIRMWARE_PACKAGE_VERSION = "7";
Generated on Tue Jul 12 2022 18:06:59 by
1.7.2
