Ethernet-based network support for mbedConnectorInterface.

Dependencies:   libnsdl EthernetInterface mbed-rtos

Dependents:   IoT_LED_demo ServoTest uWater_Project hackathon ... more

Committer:
ansond
Date:
Thu Dec 01 04:07:24 2016 +0000
Revision:
27:e457ad64cc7a
Parent:
25:8fc6d34ad527
updates

Who changed what in which revision?

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