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.
Dependencies: mbed Socket lwip-eth lwip-sys lwip
Fork of mbed-client-classic-example-lwip 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 00019 // PUT attributes to be checked from server 00020 const String EQUAL = "="; 00021 const String AMP = "&"; 00022 const String PMIN = "pmin"; 00023 const String PMAX = "pmax"; 00024 const String GT = "gt"; 00025 const String LT = "lt"; 00026 const String ST = "st"; 00027 const String CANCEL = "cancel"; 00028 00029 00030 //LWM2MOBJECT NAME/ID 00031 const String M2M_SECURITY_ID = "0"; 00032 const String M2M_SERVER_ID = "1"; 00033 const String M2M_ACCESS_CONTROL_ID = "2"; 00034 const String M2M_DEVICE_ID = "3"; 00035 00036 const String M2M_CONNECTIVITY_MONITOR_ID = "4"; 00037 const String M2M_FIRMWARE_ID = "5"; 00038 const String M2M_LOCATION_ID = "6"; 00039 const String M2M_CONNECTIVITY_STATISTICS_ID = "7"; 00040 const String RESERVED_ID = "8"; 00041 00042 //OMA RESOURCE TYPE 00043 const String OMA_RESOURCE_TYPE = ""; //oma.lwm2m 00044 00045 //DEVICE RESOURCES 00046 const String DEVICE_MANUFACTURER = "0"; 00047 const String DEVICE_DEVICE_TYPE = "17"; 00048 const String DEVICE_MODEL_NUMBER = "1"; 00049 const String DEVICE_SERIAL_NUMBER = "2"; 00050 const String DEVICE_HARDWARE_VERSION = "18"; 00051 const String DEVICE_FIRMWARE_VERSION = "3"; 00052 const String DEVICE_SOFTWARE_VERSION = "19"; 00053 const String DEVICE_REBOOT = "4"; 00054 const String DEVICE_FACTORY_RESET = "5"; 00055 const String DEVICE_AVAILABLE_POWER_SOURCES = "6"; 00056 const String DEVICE_POWER_SOURCE_VOLTAGE = "7"; 00057 const String DEVICE_POWER_SOURCE_CURRENT = "8"; 00058 const String DEVICE_BATTERY_LEVEL = "9"; 00059 const String DEVICE_BATTERY_STATUS = "20"; 00060 const String DEVICE_MEMORY_FREE = "10"; 00061 const String DEVICE_MEMORY_TOTAL = "21"; 00062 const String DEVICE_ERROR_CODE = "11"; 00063 const String DEVICE_RESET_ERROR_CODE = "12"; 00064 const String DEVICE_CURRENT_TIME = "13"; 00065 const String DEVICE_UTC_OFFSET = "14"; 00066 const String DEVICE_TIMEZONE = "15"; 00067 const String DEVICE_SUPPORTED_BINDING_MODE = "16"; 00068 00069 const String BINDING_MODE_UDP = "U"; 00070 const String BINDING_MODE_UDP_QUEUE = "UQ"; 00071 const String BINDING_MODE_SMS = "S"; 00072 const String BINDING_MODE_SMS_QUEUE = "SQ"; 00073 00074 const String ERROR_CODE_VALUE = "0"; 00075 00076 00077 00078 //SECURITY RESOURCES 00079 const String SECURITY_M2M_SERVER_URI = "0"; 00080 const String SECURITY_BOOTSTRAP_SERVER = "1"; 00081 const String SECURITY_SECURITY_MODE = "2"; 00082 const String SECURITY_PUBLIC_KEY = "3"; 00083 const String SECURITY_SERVER_PUBLIC_KEY = "4"; 00084 const String SECURITY_SECRET_KEY = "5"; 00085 const String SECURITY_SMS_SECURITY_MODE = "6"; 00086 const String SECURITY_SMS_BINDING_KEY = "7"; 00087 const String SECURITY_SMS_BINDING_SECRET_KEY = "8"; 00088 const String SECURITY_M2M_SERVER_SMS_NUMBER = "9"; 00089 const String SECURITY_SHORT_SERVER_ID = "10"; 00090 const String SECURITY_CLIENT_HOLD_OFF_TIME = "11"; 00091 00092 //SERVER RESOURCES 00093 const String SERVER_SHORT_SERVER_ID = "0"; 00094 const String SERVER_LIFETIME = "1"; 00095 const String SERVER_DEFAULT_MIN_PERIOD = "2"; 00096 const String SERVER_DEFAULT_MAX_PERIOD = "3"; 00097 const String SERVER_DISABLE = "4"; 00098 const String SERVER_DISABLE_TIMEOUT = "5"; 00099 const String SERVER_NOTIFICATION_STORAGE = "6"; 00100 const String SERVER_BINDING = "7"; 00101 const String SERVER_REGISTRATION_UPDATE = "8"; 00102 00103 //FIRMWARE RESOURCES 00104 const String FIRMWARE_PACKAGE = "0"; 00105 const String FIRMWARE_PACKAGE_URI = "1"; 00106 const String FIRMWARE_UPDATE = "2"; 00107 const String FIRMWARE_STATE = "3"; 00108 const String FIRMWARE_UPDATE_SUPPORTED_OBJECTS = "4"; 00109 const String FIRMWARE_UPDATE_RESULT = "5"; 00110 const String FIRMWARE_PACKAGE_NAME = "6"; 00111 const String FIRMWARE_PACKAGE_VERSION = "7";
Generated on Tue Jul 12 2022 13:53:46 by
