mbed Connector Interface simplification API on top of mbed-client
Fork of mbedConnectorInterfaceV3 by
NOTE:
This repo has been replaced with https://github.com/ARMmbed/mbedConnectorInterface. No further updates will occur with this repo. Please use the github repo instead. Thanks!
Diff: mbed-connector-interface/mbedConnectorInterface.h
- Revision:
- 0:1f1f55e73248
- Child:
- 33:1d0b855df5a5
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/mbed-connector-interface/mbedConnectorInterface.h Fri Feb 19 17:32:14 2016 +0000 @@ -0,0 +1,70 @@ +/** + * @file mbedConnectorInterface.h + * @brief mbed Connector Inteface configuration header file + * @author Doug Anson + * @version 1.0 + * @see + * + * Copyright (c) 2014 + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef __MBED_CONNECTOR_INTERFACE_H__ +#define __MBED_CONNECTOR_INTERFACE_H__ + +// Include specific configuration details +#include "mbed-connector-interface/configuration.h" + +/************** DEFAULT CONFIGURATION PARAMETERS ************************/ + +// mbed-client Configuration +#define REG_UPDATE_PERIOD_MS 25000 // (in ms) - 25 seconds (re-registration update period) +#define OBS_PERIOD_MS 20000 // (in ms) - 20 seconds between observations.. + +// mbed-client endpoint lifetime +#define REG_LIFETIME_SEC 600 // Lifetime of the endpoint in seconds + +// DeviceResource Root Object Name (UGLY) +#define M2M_DEVICE_RES_ROOT "3" // need a better way to handle DeviceResource object names... this is hard coded for now... + +// 6LowPAN Configuration +#define NODE_MAC_ADDRESS_LENGTH 8 +#define NODE_MAC_ADDRESS {0x00,0x00,0x06,0x02,0x00,0x00,0x36,0x18} +#define NODE_CHANNEL_LIST 0x07FFF800 // All channels + +// DynamicResource Configuration +#define MAX_VALUE_BUFFER_LENGTH 128 // largest "value" a dynamic resource may assume as a string + +// Instance Pointer Table Configuration +#define IPT_MAX_ENTRIES 5 // maximum number of unique pointers managed by the IPT (i.e. number of independent dynamic resources) + +// Logger buffer size +#define LOGGER_BUFFER_LENGTH 300 // largest single print of a given debug line + +// 802.15.4 Network ID and RF channel defaults +#define MESH_NETWORK_ID_LENGTH 32 +#define MESH_DEF_NETWORK_ID "Network000000000" +#define MESH_DEF_RF_CHANNEL 11 + + +// WiFi Configuration +#define WIFI_SSID_LENGTH 128 +#define WIFI_DEFAULT_SSID "changeme" +#define WIFI_AUTH_KEY_LENGTH 128 +#define WIFI_DEFAULT_AUTH_KEY "changeme" + +/************** DEFAULT CONFIGURATION PARAMETERS ************************/ + +#endif // __MBED_CONNECTOR_INTERFACE___ +