Cellular (U-Blox) network support for mbedConnectorInterface.
Dependencies: libnsdl C027_Support mbed-rtos
configuration.h@4:83a95c2a8450, 2015-07-25 (annotated)
- Committer:
- ansond
- Date:
- Sat Jul 25 05:15:28 2015 +0000
- Revision:
- 4:83a95c2a8450
- Parent:
- 2:fe45db933118
- Child:
- 7:6a49246b11f5
updated configuration header location
Who changed what in which revision?
User | Revision | Line number | New 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 | 4:83a95c2a8450 | 36 | #define NODE_NAME_LENGTH 32 |
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 | 4:83a95c2a8450 | 44 | #define NSP_ENDPOINT_TYPE_LENGTH 32 |
ansond | 4:83a95c2a8450 | 45 | #define NSP_ENDPOINT_TYPE "mbed-device" |
ansond | 4:83a95c2a8450 | 46 | |
ansond | 4:83a95c2a8450 | 47 | // NSP Domain used |
ansond | 4:83a95c2a8450 | 48 | #define NSP_DOMAIN_LENGTH 48 |
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_ |