added max-age and content-format
Fork of mbedConnectorInterface by
mbedConnectorInterface.h
- Committer:
- ansond
- Date:
- 2015-01-28
- Revision:
- 5:a929d65eb385
- Parent:
- 4:84159d67d32d
- Child:
- 6:516a88842a2b
File content as of revision 5:a929d65eb385:
/** * @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__ /************** DEFAULT CONFIGURATION PARAMETERS ************************/ // NSP Configuration #define NSP_IP_ADDRESS_LENGTH 16 #define NSP_IP_ADDRESS {0x20,0x02,0x0d,0xb4,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x26} #define NSP_ENDPOINT_TYPE_LENGTH 24 #define NSP_ENDPOINT_TYPE "mbed-device" #define NSP_DOMAIN "domain" #define NSP_LIFE_TIME_LENGTH 24 #define NSP_LIFE_TIME "120" // seconds #define NSP_COAP_UDP_PORT 5683 #define NSP_RD_UPDATE_PERIOD 30000 // (in ms) - 30 seconds // NODE Configuration #define NODE_NAME_LENGTH 24 #define NODE_NAME "mbed-endpoint" #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 256 // maximum number of unique pointers managed by the IPT (i.e. number of ind dynamic resources) // Logger buffer size #define LOGGER_BUFFER_LENGTH 256 // largest single print of a given debug line /************** DEFAULT CONFIGURATION PARAMETERS ************************/ #endif // __MBED_CONNECTOR_INTERFACE___