added max-age and content-format
Fork of mbedConnectorInterface by
mbedConnectorInterface.h@6:516a88842a2b, 2015-01-28 (annotated)
- Committer:
- ansond
- Date:
- Wed Jan 28 17:33:31 2015 +0000
- Revision:
- 6:516a88842a2b
- Parent:
- 5:a929d65eb385
- Child:
- 10:34078df75058
updates to enable domain setting
Who changed what in which revision?
User | Revision | Line number | New 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 | 0:b438482ebbfc | 26 | /************** DEFAULT CONFIGURATION PARAMETERS ************************/ |
ansond | 0:b438482ebbfc | 27 | |
ansond | 0:b438482ebbfc | 28 | // NSP Configuration |
ansond | 4:84159d67d32d | 29 | #define NSP_IP_ADDRESS_LENGTH 16 |
ansond | 4:84159d67d32d | 30 | #define NSP_IP_ADDRESS {0x20,0x02,0x0d,0xb4,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x26} |
ansond | 4:84159d67d32d | 31 | #define NSP_ENDPOINT_TYPE_LENGTH 24 |
ansond | 4:84159d67d32d | 32 | #define NSP_ENDPOINT_TYPE "mbed-device" |
ansond | 6:516a88842a2b | 33 | #define NSP_DOMAIN_LENGTH 24 |
ansond | 4:84159d67d32d | 34 | #define NSP_DOMAIN "domain" |
ansond | 4:84159d67d32d | 35 | #define NSP_LIFE_TIME_LENGTH 24 |
ansond | 4:84159d67d32d | 36 | #define NSP_LIFE_TIME "120" // seconds |
ansond | 4:84159d67d32d | 37 | #define NSP_COAP_UDP_PORT 5683 |
ansond | 4:84159d67d32d | 38 | #define NSP_RD_UPDATE_PERIOD 30000 // (in ms) - 30 seconds |
ansond | 0:b438482ebbfc | 39 | |
ansond | 0:b438482ebbfc | 40 | // NODE Configuration |
ansond | 4:84159d67d32d | 41 | #define NODE_NAME_LENGTH 24 |
ansond | 4:84159d67d32d | 42 | #define NODE_NAME "mbed-endpoint" |
ansond | 4:84159d67d32d | 43 | #define NODE_MAC_ADDRESS_LENGTH 8 |
ansond | 4:84159d67d32d | 44 | #define NODE_MAC_ADDRESS {0x00,0x00,0x06,0x02,0x00,0x00,0x36,0x18} |
ansond | 4:84159d67d32d | 45 | #define NODE_CHANNEL_LIST 0x07FFF800 // All channels |
ansond | 0:b438482ebbfc | 46 | |
ansond | 0:b438482ebbfc | 47 | // DynamicResource Configuration |
ansond | 4:84159d67d32d | 48 | #define MAX_VALUE_BUFFER_LENGTH 128 // largest "value" a dynamic resource may assume as a string |
ansond | 0:b438482ebbfc | 49 | |
ansond | 0:b438482ebbfc | 50 | // Instance Pointer Table Configuration |
ansond | 4:84159d67d32d | 51 | #define IPT_MAX_ENTRIES 256 // maximum number of unique pointers managed by the IPT (i.e. number of ind dynamic resources) |
ansond | 0:b438482ebbfc | 52 | |
ansond | 5:a929d65eb385 | 53 | // Logger buffer size |
ansond | 5:a929d65eb385 | 54 | #define LOGGER_BUFFER_LENGTH 256 // largest single print of a given debug line |
ansond | 5:a929d65eb385 | 55 | |
ansond | 0:b438482ebbfc | 56 | /************** DEFAULT CONFIGURATION PARAMETERS ************************/ |
ansond | 0:b438482ebbfc | 57 | |
ansond | 0:b438482ebbfc | 58 | #endif // __MBED_CONNECTOR_INTERFACE___ |