BLE mbed Endpoint network stack for mbedConnectorInterface. The stack makes use of a special BLE Socket abstraction to create socket() semantics over BLE.
Dependencies: libnsdl_m0 BLE_API Base64 nRF51822 SplitterAssembler
configuration.h@31:0290f56da60c, 2015-07-25 (annotated)
- Committer:
- ansond
- Date:
- Sat Jul 25 05:34:00 2015 +0000
- Revision:
- 31:0290f56da60c
- Parent:
- 15:3c021e52addd
- Child:
- 37:64cab752e428
revamped configuration header
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
ansond | 31:0290f56da60c | 1 | /** |
ansond | 31:0290f56da60c | 2 | * @file configuration.h |
ansond | 31:0290f56da60c | 3 | * @brief mbed Endpoint Network configuration header |
ansond | 31:0290f56da60c | 4 | * @author Doug Anson |
ansond | 31:0290f56da60c | 5 | * @version 1.0 |
ansond | 31:0290f56da60c | 6 | * @see |
ansond | 31:0290f56da60c | 7 | * |
ansond | 31:0290f56da60c | 8 | * Copyright (c) 2014 |
ansond | 31:0290f56da60c | 9 | * |
ansond | 31:0290f56da60c | 10 | * Licensed under the Apache License, Version 2.0 (the "License"); |
ansond | 31:0290f56da60c | 11 | * you may not use this file except in compliance with the License. |
ansond | 31:0290f56da60c | 12 | * You may obtain a copy of the License at |
ansond | 31:0290f56da60c | 13 | * |
ansond | 31:0290f56da60c | 14 | * http://www.apache.org/licenses/LICENSE-2.0 |
ansond | 31:0290f56da60c | 15 | * |
ansond | 31:0290f56da60c | 16 | * Unless required by applicable law or agreed to in writing, software |
ansond | 31:0290f56da60c | 17 | * distributed under the License is distributed on an "AS IS" BASIS, |
ansond | 31:0290f56da60c | 18 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
ansond | 31:0290f56da60c | 19 | * See the License for the specific language governing permissions and |
ansond | 31:0290f56da60c | 20 | * limitations under the License. |
ansond | 31:0290f56da60c | 21 | */ |
ansond | 31:0290f56da60c | 22 | |
ansond | 0:7809547930d9 | 23 | #ifndef __CONFIGURATION_H_ |
ansond | 0:7809547930d9 | 24 | #define __CONFIGURATION_H_ |
ansond | 0:7809547930d9 | 25 | |
ansond | 15:3c021e52addd | 26 | /************** CONFIGURATION PARAMETERS ************************/ |
ansond | 0:7809547930d9 | 27 | |
ansond | 15:3c021e52addd | 28 | /************** CONFIGURATION PARAMETERS ************************/ |
ansond | 0:7809547930d9 | 29 | |
ansond | 31:0290f56da60c | 30 | /************* NSP CONFIGURATION DEFAULTS ***********************/ |
ansond | 31:0290f56da60c | 31 | |
ansond | 31:0290f56da60c | 32 | // NSP node name |
ansond | 31:0290f56da60c | 33 | #define NODE_NAME_LENGTH 32 |
ansond | 31:0290f56da60c | 34 | #define NODE_NAME "mbed-endpoint" |
ansond | 31:0290f56da60c | 35 | |
ansond | 31:0290f56da60c | 36 | // NSP Address (4 bytes for IPV4, 16 bytes for IPV6) |
ansond | 31:0290f56da60c | 37 | #define NSP_IP_ADDRESS_LENGTH 4 |
ansond | 31:0290f56da60c | 38 | #define NSP_IP_ADDRESS {23,99,29,171} |
ansond | 31:0290f56da60c | 39 | |
ansond | 31:0290f56da60c | 40 | // NSP Endpoint Type specification |
ansond | 31:0290f56da60c | 41 | #define NSP_ENDPOINT_TYPE_LENGTH 32 |
ansond | 31:0290f56da60c | 42 | #define NSP_ENDPOINT_TYPE "mbed-device" |
ansond | 31:0290f56da60c | 43 | |
ansond | 31:0290f56da60c | 44 | // NSP Domain used |
ansond | 31:0290f56da60c | 45 | #define NSP_DOMAIN_LENGTH 48 |
ansond | 31:0290f56da60c | 46 | #define NSP_DOMAIN "domain" |
ansond | 31:0290f56da60c | 47 | |
ansond | 31:0290f56da60c | 48 | /************* NSP CONFIGURATION DEFAULTS ***********************/ |
ansond | 31:0290f56da60c | 49 | |
ansond | 0:7809547930d9 | 50 | #endif // __CONFIGURATION_H_ |