use TCP to connect to mbed connector

Fork of mbedConnectorInterfaceWithDM by Doug Anson

Committer:
ansond
Date:
Fri Feb 19 17:32:14 2016 +0000
Revision:
0:1f1f55e73248
Child:
33:1d0b855df5a5
initial checkin

Who changed what in which revision?

UserRevisionLine numberNew contents of line
ansond 0:1f1f55e73248 1 /**
ansond 0:1f1f55e73248 2 * @file mbedConnectorInterface.h
ansond 0:1f1f55e73248 3 * @brief mbed Connector Inteface configuration header file
ansond 0:1f1f55e73248 4 * @author Doug Anson
ansond 0:1f1f55e73248 5 * @version 1.0
ansond 0:1f1f55e73248 6 * @see
ansond 0:1f1f55e73248 7 *
ansond 0:1f1f55e73248 8 * Copyright (c) 2014
ansond 0:1f1f55e73248 9 *
ansond 0:1f1f55e73248 10 * Licensed under the Apache License, Version 2.0 (the "License");
ansond 0:1f1f55e73248 11 * you may not use this file except in compliance with the License.
ansond 0:1f1f55e73248 12 * You may obtain a copy of the License at
ansond 0:1f1f55e73248 13 *
ansond 0:1f1f55e73248 14 * http://www.apache.org/licenses/LICENSE-2.0
ansond 0:1f1f55e73248 15 *
ansond 0:1f1f55e73248 16 * Unless required by applicable law or agreed to in writing, software
ansond 0:1f1f55e73248 17 * distributed under the License is distributed on an "AS IS" BASIS,
ansond 0:1f1f55e73248 18 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
ansond 0:1f1f55e73248 19 * See the License for the specific language governing permissions and
ansond 0:1f1f55e73248 20 * limitations under the License.
ansond 0:1f1f55e73248 21 */
ansond 0:1f1f55e73248 22
ansond 0:1f1f55e73248 23 #ifndef __MBED_CONNECTOR_INTERFACE_H__
ansond 0:1f1f55e73248 24 #define __MBED_CONNECTOR_INTERFACE_H__
ansond 0:1f1f55e73248 25
ansond 0:1f1f55e73248 26 // Include specific configuration details
ansond 0:1f1f55e73248 27 #include "mbed-connector-interface/configuration.h"
ansond 0:1f1f55e73248 28
ansond 0:1f1f55e73248 29 /************** DEFAULT CONFIGURATION PARAMETERS ************************/
ansond 0:1f1f55e73248 30
ansond 0:1f1f55e73248 31 // mbed-client Configuration
ansond 0:1f1f55e73248 32 #define REG_UPDATE_PERIOD_MS 25000 // (in ms) - 25 seconds (re-registration update period)
ansond 0:1f1f55e73248 33 #define OBS_PERIOD_MS 20000 // (in ms) - 20 seconds between observations..
ansond 0:1f1f55e73248 34
ansond 0:1f1f55e73248 35 // mbed-client endpoint lifetime
ansond 0:1f1f55e73248 36 #define REG_LIFETIME_SEC 600 // Lifetime of the endpoint in seconds
ansond 0:1f1f55e73248 37
ansond 0:1f1f55e73248 38 // DeviceResource Root Object Name (UGLY)
ansond 0:1f1f55e73248 39 #define M2M_DEVICE_RES_ROOT "3" // need a better way to handle DeviceResource object names... this is hard coded for now...
ansond 0:1f1f55e73248 40
ansond 0:1f1f55e73248 41 // 6LowPAN Configuration
ansond 0:1f1f55e73248 42 #define NODE_MAC_ADDRESS_LENGTH 8
ansond 0:1f1f55e73248 43 #define NODE_MAC_ADDRESS {0x00,0x00,0x06,0x02,0x00,0x00,0x36,0x18}
ansond 0:1f1f55e73248 44 #define NODE_CHANNEL_LIST 0x07FFF800 // All channels
ansond 0:1f1f55e73248 45
ansond 0:1f1f55e73248 46 // DynamicResource Configuration
ansond 0:1f1f55e73248 47 #define MAX_VALUE_BUFFER_LENGTH 128 // largest "value" a dynamic resource may assume as a string
ansond 0:1f1f55e73248 48
ansond 0:1f1f55e73248 49 // Instance Pointer Table Configuration
ansond 0:1f1f55e73248 50 #define IPT_MAX_ENTRIES 5 // maximum number of unique pointers managed by the IPT (i.e. number of independent dynamic resources)
ansond 0:1f1f55e73248 51
ansond 0:1f1f55e73248 52 // Logger buffer size
ansond 0:1f1f55e73248 53 #define LOGGER_BUFFER_LENGTH 300 // largest single print of a given debug line
ansond 0:1f1f55e73248 54
ansond 0:1f1f55e73248 55 // 802.15.4 Network ID and RF channel defaults
ansond 0:1f1f55e73248 56 #define MESH_NETWORK_ID_LENGTH 32
ansond 0:1f1f55e73248 57 #define MESH_DEF_NETWORK_ID "Network000000000"
ansond 0:1f1f55e73248 58 #define MESH_DEF_RF_CHANNEL 11
ansond 0:1f1f55e73248 59
ansond 0:1f1f55e73248 60
ansond 0:1f1f55e73248 61 // WiFi Configuration
ansond 0:1f1f55e73248 62 #define WIFI_SSID_LENGTH 128
ansond 0:1f1f55e73248 63 #define WIFI_DEFAULT_SSID "changeme"
ansond 0:1f1f55e73248 64 #define WIFI_AUTH_KEY_LENGTH 128
ansond 0:1f1f55e73248 65 #define WIFI_DEFAULT_AUTH_KEY "changeme"
ansond 0:1f1f55e73248 66
ansond 0:1f1f55e73248 67 /************** DEFAULT CONFIGURATION PARAMETERS ************************/
ansond 0:1f1f55e73248 68
ansond 0:1f1f55e73248 69 #endif // __MBED_CONNECTOR_INTERFACE___
ansond 0:1f1f55e73248 70