Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: libnsdl Nanostack_lib
configuration.h@11:c6bc7543f72f, 2015-07-25 (annotated)
- Committer:
- ansond
- Date:
- Sat Jul 25 05:30:38 2015 +0000
- Revision:
- 11:c6bc7543f72f
- Parent:
- 0:2a5a48a8b4d4
- Child:
- 13:17948fd0fe32
revamped configuration header
Who changed what in which revision?
| User | Revision | Line number | New contents of line |
|---|---|---|---|
| ansond | 11:c6bc7543f72f | 1 | /** |
| ansond | 11:c6bc7543f72f | 2 | * @file configuration.h |
| ansond | 11:c6bc7543f72f | 3 | * @brief mbed Endpoint Network configuration header |
| ansond | 11:c6bc7543f72f | 4 | * @author Doug Anson |
| ansond | 11:c6bc7543f72f | 5 | * @version 1.0 |
| ansond | 11:c6bc7543f72f | 6 | * @see |
| ansond | 11:c6bc7543f72f | 7 | * |
| ansond | 11:c6bc7543f72f | 8 | * Copyright (c) 2014 |
| ansond | 11:c6bc7543f72f | 9 | * |
| ansond | 11:c6bc7543f72f | 10 | * Licensed under the Apache License, Version 2.0 (the "License"); |
| ansond | 11:c6bc7543f72f | 11 | * you may not use this file except in compliance with the License. |
| ansond | 11:c6bc7543f72f | 12 | * You may obtain a copy of the License at |
| ansond | 11:c6bc7543f72f | 13 | * |
| ansond | 11:c6bc7543f72f | 14 | * http://www.apache.org/licenses/LICENSE-2.0 |
| ansond | 11:c6bc7543f72f | 15 | * |
| ansond | 11:c6bc7543f72f | 16 | * Unless required by applicable law or agreed to in writing, software |
| ansond | 11:c6bc7543f72f | 17 | * distributed under the License is distributed on an "AS IS" BASIS, |
| ansond | 11:c6bc7543f72f | 18 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| ansond | 11:c6bc7543f72f | 19 | * See the License for the specific language governing permissions and |
| ansond | 11:c6bc7543f72f | 20 | * limitations under the License. |
| ansond | 11:c6bc7543f72f | 21 | */ |
| ansond | 11:c6bc7543f72f | 22 | |
| ansond | 0:2a5a48a8b4d4 | 23 | #ifndef __CONFIGURATION_H_ |
| ansond | 0:2a5a48a8b4d4 | 24 | #define __CONFIGURATION_H_ |
| ansond | 0:2a5a48a8b4d4 | 25 | |
| ansond | 0:2a5a48a8b4d4 | 26 | /************** CONFIGURATION PARAMETERS ************************/ |
| ansond | 0:2a5a48a8b4d4 | 27 | |
| ansond | 0:2a5a48a8b4d4 | 28 | // APP |
| ansond | 0:2a5a48a8b4d4 | 29 | #define APP_DEV_HEAP_SIZE 6000 |
| ansond | 0:2a5a48a8b4d4 | 30 | |
| ansond | 0:2a5a48a8b4d4 | 31 | // Tasklet |
| ansond | 0:2a5a48a8b4d4 | 32 | #define RETRY_TIMER 1 |
| ansond | 0:2a5a48a8b4d4 | 33 | #define NSP_REGISTRATION_TIMER 2 |
| ansond | 0:2a5a48a8b4d4 | 34 | #define NODE_SHORT_ADDRESS 1 |
| ansond | 0:2a5a48a8b4d4 | 35 | #define AUDP_SOCKET_PORT 61630 |
| ansond | 0:2a5a48a8b4d4 | 36 | #define RECV_CTRL_UDP_PORT 1050 // receive |
| ansond | 0:2a5a48a8b4d4 | 37 | #define SEND_CTRL_UDP_PORT 1060 // send |
| ansond | 0:2a5a48a8b4d4 | 38 | |
| ansond | 0:2a5a48a8b4d4 | 39 | /************** CONFIGURATION PARAMETERS ************************/ |
| ansond | 0:2a5a48a8b4d4 | 40 | |
| ansond | 11:c6bc7543f72f | 41 | /************* NSP CONFIGURATION DEFAULTS ***********************/ |
| ansond | 11:c6bc7543f72f | 42 | |
| ansond | 11:c6bc7543f72f | 43 | // NSP node name |
| ansond | 11:c6bc7543f72f | 44 | #define NODE_NAME_LENGTH 32 |
| ansond | 11:c6bc7543f72f | 45 | #define NODE_NAME "mbed-endpoint" |
| ansond | 11:c6bc7543f72f | 46 | |
| ansond | 11:c6bc7543f72f | 47 | // NSP Address (4 bytes for IPV4, 16 bytes for IPV6) |
| ansond | 11:c6bc7543f72f | 48 | #define NSP_IP_ADDRESS_LENGTH 16 |
| ansond | 11:c6bc7543f72f | 49 | #define NSP_IP_ADDRESS {0x20,0x02,0x0d,0xb4,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x26} |
| ansond | 11:c6bc7543f72f | 50 | |
| ansond | 11:c6bc7543f72f | 51 | // NSP Endpoint Type specification |
| ansond | 11:c6bc7543f72f | 52 | #define NSP_ENDPOINT_TYPE_LENGTH 32 |
| ansond | 11:c6bc7543f72f | 53 | #define NSP_ENDPOINT_TYPE "mbed-device" |
| ansond | 11:c6bc7543f72f | 54 | |
| ansond | 11:c6bc7543f72f | 55 | // NSP Domain used |
| ansond | 11:c6bc7543f72f | 56 | #define NSP_DOMAIN_LENGTH 48 |
| ansond | 11:c6bc7543f72f | 57 | #define NSP_DOMAIN "domain" |
| ansond | 11:c6bc7543f72f | 58 | |
| ansond | 11:c6bc7543f72f | 59 | /************* NSP CONFIGURATION DEFAULTS ***********************/ |
| ansond | 11:c6bc7543f72f | 60 | |
| ansond | 0:2a5a48a8b4d4 | 61 | #endif // __CONFIGURATION_H_ |
