mbedConnectorInterface back port from mbedOS v3 using mbed-client C++ call interface
Embed:
(wiki syntax)
Show/hide line numbers
mbedConnectorInterface.h
Go to the documentation of this file.
00001 /** 00002 * @file mbedConnectorInterface.h 00003 * @brief mbed Connector Inteface configuration header file 00004 * @author Doug Anson 00005 * @version 1.0 00006 * @see 00007 * 00008 * Copyright (c) 2014 00009 * 00010 * Licensed under the Apache License, Version 2.0 (the "License"); 00011 * you may not use this file except in compliance with the License. 00012 * You may obtain a copy of the License at 00013 * 00014 * http://www.apache.org/licenses/LICENSE-2.0 00015 * 00016 * Unless required by applicable law or agreed to in writing, software 00017 * distributed under the License is distributed on an "AS IS" BASIS, 00018 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 00019 * See the License for the specific language governing permissions and 00020 * limitations under the License. 00021 */ 00022 00023 #ifndef __MBED_CONNECTOR_INTERFACE_H__ 00024 #define __MBED_CONNECTOR_INTERFACE_H__ 00025 00026 // Include specific configuration details 00027 #include "mbed-connector-interface/configuration.h" 00028 00029 /************** DEFAULT CONFIGURATION PARAMETERS ************************/ 00030 00031 // mbed-client Configuration 00032 #define REG_UPDATE_PERIOD_MS 25000 // (in ms) - 25 seconds (re-registration update period) 00033 #define OBS_PERIOD_MS 20000 // (in ms) - 20 seconds between observations.. 00034 00035 // mbed-client endpoint lifetime 00036 #define REG_LIFETIME_SEC 600 // Lifetime of the endpoint in seconds 00037 00038 // DeviceResource Root Object Name (UGLY) 00039 #define M2M_DEVICE_RES_ROOT "3" // need a better way to handle DeviceResource object names... this is hard coded for now... 00040 00041 // 6LowPAN Configuration 00042 #define NODE_MAC_ADDRESS_LENGTH 8 00043 #define NODE_MAC_ADDRESS {0x00,0x00,0x06,0x02,0x00,0x00,0x36,0x18} 00044 #define NODE_CHANNEL_LIST 0x07FFF800 // All channels 00045 00046 // DynamicResource Configuration 00047 #define MAX_VALUE_BUFFER_LENGTH 128 // largest "value" a dynamic resource may assume as a string 00048 00049 // Instance Pointer Table Configuration 00050 #define IPT_MAX_ENTRIES 5 // maximum number of unique pointers managed by the IPT (i.e. number of independent dynamic resources) 00051 00052 // Logger buffer size 00053 #define LOGGER_BUFFER_LENGTH 300 // largest single print of a given debug line 00054 00055 // 802.15.4 Network ID and RF channel defaults 00056 #define MESH_NETWORK_ID_LENGTH 32 00057 #define MESH_DEF_NETWORK_ID "Network000000000" 00058 #define MESH_DEF_RF_CHANNEL 11 00059 00060 00061 // WiFi Configuration 00062 #define WIFI_SSID_LENGTH 128 00063 #define WIFI_DEFAULT_SSID "changeme" 00064 #define WIFI_AUTH_KEY_LENGTH 128 00065 #define WIFI_DEFAULT_AUTH_KEY "changeme" 00066 00067 /************** DEFAULT CONFIGURATION PARAMETERS ************************/ 00068 00069 #endif // __MBED_CONNECTOR_INTERFACE___ 00070
Generated on Wed Jul 13 2022 21:59:32 by
1.7.2