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:
34:7b4560f7c3c7
merged with IoS and android tweaks

Who changed what in which revision?

UserRevisionLine numberNew contents of line
ansond 34:7b4560f7c3c7 1 /**
ansond 34:7b4560f7c3c7 2 * @file mbedEndpointNetworkStubs.h
ansond 34:7b4560f7c3c7 3 * @brief mbed Endpoint Network header - declares underling network instance
ansond 34:7b4560f7c3c7 4 * @author Doug Anson
ansond 34:7b4560f7c3c7 5 * @version 1.0
ansond 34:7b4560f7c3c7 6 * @see
ansond 34:7b4560f7c3c7 7 *
ansond 34:7b4560f7c3c7 8 * Copyright (c) 2014
ansond 34:7b4560f7c3c7 9 *
ansond 34:7b4560f7c3c7 10 * Licensed under the Apache License, Version 2.0 (the "License");
ansond 34:7b4560f7c3c7 11 * you may not use this file except in compliance with the License.
ansond 34:7b4560f7c3c7 12 * You may obtain a copy of the License at
ansond 34:7b4560f7c3c7 13 *
ansond 34:7b4560f7c3c7 14 * http://www.apache.org/licenses/LICENSE-2.0
ansond 34:7b4560f7c3c7 15 *
ansond 34:7b4560f7c3c7 16 * Unless required by applicable law or agreed to in writing, software
ansond 34:7b4560f7c3c7 17 * distributed under the License is distributed on an "AS IS" BASIS,
ansond 34:7b4560f7c3c7 18 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
ansond 34:7b4560f7c3c7 19 * See the License for the specific language governing permissions and
ansond 34:7b4560f7c3c7 20 * limitations under the License.
ansond 34:7b4560f7c3c7 21 */
ansond 34:7b4560f7c3c7 22
ansond 34:7b4560f7c3c7 23 #ifndef __MBED_ENDPOINT_NETWORK_H__
ansond 34:7b4560f7c3c7 24 #define __MBED_ENDPOINT_NETWORK_H__
ansond 34:7b4560f7c3c7 25
ansond 34:7b4560f7c3c7 26 // mbed
ansond 34:7b4560f7c3c7 27 #include "mbed.h"
ansond 34:7b4560f7c3c7 28
ansond 34:7b4560f7c3c7 29 // USB Serial port access for debugging/logging
ansond 34:7b4560f7c3c7 30 RawSerial pc(USBTX,USBRX);
ansond 34:7b4560f7c3c7 31
ansond 34:7b4560f7c3c7 32 // Logging facility
ansond 34:7b4560f7c3c7 33 #include "Logger.h"
ansond 34:7b4560f7c3c7 34 Logger logger(&pc);
ansond 34:7b4560f7c3c7 35
ansond 34:7b4560f7c3c7 36 // mbed Connector Endpoint includes
ansond 34:7b4560f7c3c7 37 #include "ConnectorEndpoint.h"
ansond 34:7b4560f7c3c7 38 #include "OptionsBuilder.h"
ansond 34:7b4560f7c3c7 39
ansond 34:7b4560f7c3c7 40 #endif // __MBED_ENDPOINT_NETWORK_H__