custom for >5 resources

Fork of mbedConnectorInterface by Doug Anson

Committer:
michaeljkoster
Date:
Wed May 20 00:46:01 2015 +0000
Revision:
57:ef0fdadde9eb
Parent:
55:3915ac238c5d
10 resources

Who changed what in which revision?

UserRevisionLine numberNew contents of line
ansond 0:b438482ebbfc 1 /**
ansond 0:b438482ebbfc 2 * @file mbedConnectorInterface.h
ansond 0:b438482ebbfc 3 * @brief mbed Connector Inteface configuration header file
ansond 0:b438482ebbfc 4 * @author Doug Anson
ansond 0:b438482ebbfc 5 * @version 1.0
sam_grove 2:853f9ecc12df 6 * @see
ansond 0:b438482ebbfc 7 *
ansond 0:b438482ebbfc 8 * Copyright (c) 2014
ansond 0:b438482ebbfc 9 *
ansond 0:b438482ebbfc 10 * Licensed under the Apache License, Version 2.0 (the "License");
ansond 0:b438482ebbfc 11 * you may not use this file except in compliance with the License.
ansond 0:b438482ebbfc 12 * You may obtain a copy of the License at
ansond 0:b438482ebbfc 13 *
ansond 0:b438482ebbfc 14 * http://www.apache.org/licenses/LICENSE-2.0
ansond 0:b438482ebbfc 15 *
ansond 0:b438482ebbfc 16 * Unless required by applicable law or agreed to in writing, software
ansond 0:b438482ebbfc 17 * distributed under the License is distributed on an "AS IS" BASIS,
ansond 0:b438482ebbfc 18 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
ansond 0:b438482ebbfc 19 * See the License for the specific language governing permissions and
ansond 0:b438482ebbfc 20 * limitations under the License.
ansond 0:b438482ebbfc 21 */
ansond 0:b438482ebbfc 22
ansond 0:b438482ebbfc 23 #ifndef __MBED_CONNECTOR_INTERFACE_H__
ansond 0:b438482ebbfc 24 #define __MBED_CONNECTOR_INTERFACE_H__
ansond 0:b438482ebbfc 25
ansond 10:34078df75058 26 // Include specific NSP configuration details
ansond 10:34078df75058 27 #include "nsp_configuration.h"
ansond 10:34078df75058 28
ansond 0:b438482ebbfc 29 /************** DEFAULT CONFIGURATION PARAMETERS ************************/
ansond 0:b438482ebbfc 30
ansond 0:b438482ebbfc 31 // NSP Configuration
ansond 42:20c375e74e8e 32 #define NSP_COAP_UDP_PORT 5683 // Default CoAP UDP port
ansond 42:20c375e74e8e 33 #define NSP_LIFE_TIME_LENGTH 24 // length of the lifetime buffer string
ansond 42:20c375e74e8e 34 #define NSP_LIFE_TIME "120" // liftime buffer (representing seconds)
ansond 46:cc6076ac5026 35 #define NSP_RD_UPDATE_PERIOD 30000 // (in ms) - 30 seconds (1/4 of NSP_LIFE_TIME seconds)
ansond 55:3915ac238c5d 36 #define NSP_TICKERUPDATE_PERIOD 30.0 // (float secs) - 30 seconds (used for Ticker-based re-registration periods)
ansond 42:20c375e74e8e 37 #define NSP_DEFAULT_OBS_PERIOD 10000 // (in ms) - 10 seconds between observations..
ansond 0:b438482ebbfc 38
ansond 18:95c2f95a75fe 39 // 6LowPAN Configuration
ansond 4:84159d67d32d 40 #define NODE_MAC_ADDRESS_LENGTH 8
ansond 4:84159d67d32d 41 #define NODE_MAC_ADDRESS {0x00,0x00,0x06,0x02,0x00,0x00,0x36,0x18}
ansond 4:84159d67d32d 42 #define NODE_CHANNEL_LIST 0x07FFF800 // All channels
ansond 0:b438482ebbfc 43
ansond 0:b438482ebbfc 44 // DynamicResource Configuration
ansond 23:caa0260acc21 45 #define MAX_VALUE_BUFFER_LENGTH 128 // largest "value" a dynamic resource may assume as a string
ansond 0:b438482ebbfc 46
ansond 0:b438482ebbfc 47 // Instance Pointer Table Configuration
michaeljkoster 57:ef0fdadde9eb 48 #define IPT_MAX_ENTRIES 10 // maximum number of unique pointers managed by the IPT (i.e. number of independent dynamic resources)
ansond 0:b438482ebbfc 49
ansond 5:a929d65eb385 50 // Logger buffer size
ansond 18:95c2f95a75fe 51 #define LOGGER_BUFFER_LENGTH 300 // largest single print of a given debug line
ansond 5:a929d65eb385 52
ansond 19:e2cbaeeea509 53 // 802.15.4 Network ID and RF channel defaults
ansond 19:e2cbaeeea509 54 #define MESH_NETWORK_ID_LENGTH 32
ansond 19:e2cbaeeea509 55 #define MESH_DEF_NETWORK_ID "Network000000000"
ansond 19:e2cbaeeea509 56 #define MESH_DEF_RF_CHANNEL 11
ansond 19:e2cbaeeea509 57
ansond 19:e2cbaeeea509 58
ansond 16:383ad1356963 59 // WiFi Configuration
ansond 16:383ad1356963 60 #define WIFI_SSID_LENGTH 128
ansond 16:383ad1356963 61 #define WIFI_DEFAULT_SSID "changeme"
ansond 16:383ad1356963 62 #define WIFI_AUTH_KEY_LENGTH 128
ansond 16:383ad1356963 63 #define WIFI_DEFAULT_AUTH_KEY "changeme"
ansond 16:383ad1356963 64
ansond 0:b438482ebbfc 65 /************** DEFAULT CONFIGURATION PARAMETERS ************************/
ansond 0:b438482ebbfc 66
ansond 0:b438482ebbfc 67 #endif // __MBED_CONNECTOR_INTERFACE___