Cellular (U-Blox) network support for mbedConnectorInterface.

Dependencies:   libnsdl C027_Support mbed-rtos

Dependents:   mbed-3g-sample

Committer:
ansond
Date:
Mon Dec 07 17:33:01 2015 +0000
Revision:
8:d6c30a9a5ebe
Parent:
7:6a49246b11f5
updates

Who changed what in which revision?

UserRevisionLine numberNew contents of line
ansond 4:83a95c2a8450 1 /**
ansond 4:83a95c2a8450 2 * @file configuration.h
ansond 4:83a95c2a8450 3 * @brief mbed Endpoint Network configuration header
ansond 4:83a95c2a8450 4 * @author Doug Anson
ansond 4:83a95c2a8450 5 * @version 1.0
ansond 4:83a95c2a8450 6 * @see
ansond 4:83a95c2a8450 7 *
ansond 4:83a95c2a8450 8 * Copyright (c) 2014
ansond 4:83a95c2a8450 9 *
ansond 4:83a95c2a8450 10 * Licensed under the Apache License, Version 2.0 (the "License");
ansond 4:83a95c2a8450 11 * you may not use this file except in compliance with the License.
ansond 4:83a95c2a8450 12 * You may obtain a copy of the License at
ansond 4:83a95c2a8450 13 *
ansond 4:83a95c2a8450 14 * http://www.apache.org/licenses/LICENSE-2.0
ansond 4:83a95c2a8450 15 *
ansond 4:83a95c2a8450 16 * Unless required by applicable law or agreed to in writing, software
ansond 4:83a95c2a8450 17 * distributed under the License is distributed on an "AS IS" BASIS,
ansond 4:83a95c2a8450 18 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
ansond 4:83a95c2a8450 19 * See the License for the specific language governing permissions and
ansond 4:83a95c2a8450 20 * limitations under the License.
ansond 4:83a95c2a8450 21 */
ansond 4:83a95c2a8450 22
ansond 0:d2ac2f05a621 23 #ifndef __CONFIGURATION_H_
ansond 0:d2ac2f05a621 24 #define __CONFIGURATION_H_
ansond 0:d2ac2f05a621 25
ansond 4:83a95c2a8450 26 /************** CONFIGURATION PARAMETERS ************************/
ansond 0:d2ac2f05a621 27
ansond 0:d2ac2f05a621 28 // we will use ThreadedResourceObserver
ansond 0:d2ac2f05a621 29 #define CONNECTOR_USING_THREADS 1
ansond 0:d2ac2f05a621 30
ansond 4:83a95c2a8450 31 /************** CONFIGURATION PARAMETERS ************************/
ansond 4:83a95c2a8450 32
ansond 4:83a95c2a8450 33 /************* NSP CONFIGURATION DEFAULTS ***********************/
ansond 4:83a95c2a8450 34
ansond 4:83a95c2a8450 35 // NSP node name
ansond 7:6a49246b11f5 36 #define NODE_NAME_LENGTH 128
ansond 4:83a95c2a8450 37 #define NODE_NAME "mbed-endpoint"
ansond 4:83a95c2a8450 38
ansond 4:83a95c2a8450 39 // NSP Address (4 bytes for IPV4, 16 bytes for IPV6)
ansond 4:83a95c2a8450 40 #define NSP_IP_ADDRESS_LENGTH 4
ansond 4:83a95c2a8450 41 #define NSP_IP_ADDRESS {23,99,29,171}
ansond 4:83a95c2a8450 42
ansond 4:83a95c2a8450 43 // NSP Endpoint Type specification
ansond 7:6a49246b11f5 44 #define NSP_ENDPOINT_TYPE_LENGTH 128
ansond 4:83a95c2a8450 45 #define NSP_ENDPOINT_TYPE "mbed-device"
ansond 4:83a95c2a8450 46
ansond 4:83a95c2a8450 47 // NSP Domain used
ansond 7:6a49246b11f5 48 #define NSP_DOMAIN_LENGTH 128
ansond 4:83a95c2a8450 49 #define NSP_DOMAIN "domain"
ansond 4:83a95c2a8450 50
ansond 4:83a95c2a8450 51 /************* NSP CONFIGURATION DEFAULTS ***********************/
ansond 0:d2ac2f05a621 52
ansond 0:d2ac2f05a621 53 #endif // __CONFIGURATION_H_