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

Committer:
ansond
Date:
Tue Nov 03 17:03:51 2015 +0000
Revision:
38:30e71f1206b1
Parent:
37:64cab752e428
merged with IoS and android tweaks

Who changed what in which revision?

UserRevisionLine numberNew 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 37:64cab752e428 33 #define NODE_NAME_LENGTH 128
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 37:64cab752e428 41 #define NSP_ENDPOINT_TYPE_LENGTH 128
ansond 31:0290f56da60c 42 #define NSP_ENDPOINT_TYPE "mbed-device"
ansond 31:0290f56da60c 43
ansond 31:0290f56da60c 44 // NSP Domain used
ansond 37:64cab752e428 45 #define NSP_DOMAIN_LENGTH 128
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_