Doug Anson / mbedEndpointNetwork_6LowPAN

Dependencies:   libnsdl Nanostack_lib

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers configuration.h Source File

configuration.h

Go to the documentation of this file.
00001 /**
00002  * @file    configuration.h
00003  * @brief   mbed Endpoint Network configuration header
00004  * @author  Doug Anson
00005  * @version 1.0
00006  * @see
00007  *
00008  * Copyright (c) 2014
00009  *
00010  * Licensed under the Apache License, Version 2.0 (the "License");
00011  * you may not use this file except in compliance with the License.
00012  * You may obtain a copy of the License at
00013  *
00014  *     http://www.apache.org/licenses/LICENSE-2.0
00015  *
00016  * Unless required by applicable law or agreed to in writing, software
00017  * distributed under the License is distributed on an "AS IS" BASIS,
00018  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
00019  * See the License for the specific language governing permissions and
00020  * limitations under the License.
00021  */
00022  
00023 #ifndef __CONFIGURATION_H_
00024 #define __CONFIGURATION_H_
00025 
00026 /************** CONFIGURATION PARAMETERS  ************************/
00027 
00028 // APP
00029 #define APP_DEV_HEAP_SIZE       6000
00030 
00031 // Tasklet
00032 #define RETRY_TIMER             1
00033 #define NSP_REGISTRATION_TIMER  2
00034 #define NODE_SHORT_ADDRESS      1
00035 #define AUDP_SOCKET_PORT        61630
00036 #define RECV_CTRL_UDP_PORT      1050                                        // receive
00037 #define SEND_CTRL_UDP_PORT      1060                                        // send
00038 
00039 /************** CONFIGURATION PARAMETERS  ************************/
00040 
00041 /************* NSP CONFIGURATION DEFAULTS  ***********************/
00042 
00043 // NSP node name
00044 #define NODE_NAME_LENGTH         128
00045 #define NODE_NAME                "mbed-endpoint"
00046  
00047 // NSP Address (4 bytes for IPV4, 16 bytes for IPV6)
00048 #define NSP_IP_ADDRESS_LENGTH    16
00049 #define NSP_IP_ADDRESS           {0x20,0x02,0x0d,0xb4,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x26}
00050   
00051 // NSP Endpoint Type specification
00052 #define NSP_ENDPOINT_TYPE_LENGTH 128
00053 #define NSP_ENDPOINT_TYPE        "mbed-device"
00054  
00055 // NSP Domain used
00056 #define NSP_DOMAIN_LENGTH        128
00057 #define NSP_DOMAIN               "domain"
00058  
00059 /************* NSP CONFIGURATION DEFAULTS  ***********************/
00060 
00061 #endif // __CONFIGURATION_H_