use TCP to connect to mbed connector
Fork of mbedConnectorInterfaceWithDM by
mbed-connector-interface/mbedEndpointNetwork.h@0:1f1f55e73248, 2016-02-19 (annotated)
- Committer:
- ansond
- Date:
- Fri Feb 19 17:32:14 2016 +0000
- Revision:
- 0:1f1f55e73248
- Child:
- 1:16f0fb5b8d97
initial checkin
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
ansond | 0:1f1f55e73248 | 1 | /** |
ansond | 0:1f1f55e73248 | 2 | * @file mbedEndpointNetwork.h |
ansond | 0:1f1f55e73248 | 3 | * @brief mbed Endpoint Network header - declares underling network instance |
ansond | 0:1f1f55e73248 | 4 | * @author Doug Anson |
ansond | 0:1f1f55e73248 | 5 | * @version 1.0 |
ansond | 0:1f1f55e73248 | 6 | * @see |
ansond | 0:1f1f55e73248 | 7 | * |
ansond | 0:1f1f55e73248 | 8 | * Copyright (c) 2014 |
ansond | 0:1f1f55e73248 | 9 | * |
ansond | 0:1f1f55e73248 | 10 | * Licensed under the Apache License, Version 2.0 (the "License"); |
ansond | 0:1f1f55e73248 | 11 | * you may not use this file except in compliance with the License. |
ansond | 0:1f1f55e73248 | 12 | * You may obtain a copy of the License at |
ansond | 0:1f1f55e73248 | 13 | * |
ansond | 0:1f1f55e73248 | 14 | * http://www.apache.org/licenses/LICENSE-2.0 |
ansond | 0:1f1f55e73248 | 15 | * |
ansond | 0:1f1f55e73248 | 16 | * Unless required by applicable law or agreed to in writing, software |
ansond | 0:1f1f55e73248 | 17 | * distributed under the License is distributed on an "AS IS" BASIS, |
ansond | 0:1f1f55e73248 | 18 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
ansond | 0:1f1f55e73248 | 19 | * See the License for the specific language governing permissions and |
ansond | 0:1f1f55e73248 | 20 | * limitations under the License. |
ansond | 0:1f1f55e73248 | 21 | */ |
ansond | 0:1f1f55e73248 | 22 | |
ansond | 0:1f1f55e73248 | 23 | #ifndef __MBED_ENDPOINT_NETWORK_H__ |
ansond | 0:1f1f55e73248 | 24 | #define __MBED_ENDPOINT_NETWORK_H__ |
ansond | 0:1f1f55e73248 | 25 | |
ansond | 0:1f1f55e73248 | 26 | // mbed-client support |
ansond | 0:1f1f55e73248 | 27 | #include "mbed-client/m2minterfacefactory.h" |
ansond | 0:1f1f55e73248 | 28 | #include "mbed-client/m2mdevice.h" |
ansond | 0:1f1f55e73248 | 29 | #include "mbed-client/m2minterfaceobserver.h" |
ansond | 0:1f1f55e73248 | 30 | #include "mbed-client/m2minterface.h" |
ansond | 0:1f1f55e73248 | 31 | #include "mbed-client/m2mobjectinstance.h" |
ansond | 0:1f1f55e73248 | 32 | #include "mbed-client/m2mresource.h" |
ansond | 0:1f1f55e73248 | 33 | |
ansond | 0:1f1f55e73248 | 34 | // mbed Connector Interface (configuration) |
ansond | 0:1f1f55e73248 | 35 | #include "mbed-connector-interface/mbedConnectorInterface.h" |
ansond | 0:1f1f55e73248 | 36 | |
ansond | 0:1f1f55e73248 | 37 | // Include the Connector::Endpoint |
ansond | 0:1f1f55e73248 | 38 | #include "mbed-connector-interface/ConnectorEndpoint.h" |
ansond | 0:1f1f55e73248 | 39 | |
ansond | 0:1f1f55e73248 | 40 | // Include the Connector::OptionsBuilder |
ansond | 0:1f1f55e73248 | 41 | #include "mbed-connector-interface/OptionsBuilder.h" |
ansond | 0:1f1f55e73248 | 42 | |
ansond | 0:1f1f55e73248 | 43 | // Linkage to the lower network APIs and interfaces |
ansond | 0:1f1f55e73248 | 44 | extern "C" void net_stubs_pre_plumb_network(bool canActAsRouterNode); |
ansond | 0:1f1f55e73248 | 45 | extern "C" void net_stubs_post_plumb_network(void); |
ansond | 0:1f1f55e73248 | 46 | extern "C" void net_stubs_create_main_loop(Connector::Endpoint *endpoint,M2MSecurity *server,M2MObjectList list); |
ansond | 0:1f1f55e73248 | 47 | extern "C" void net_stubs_begin_main_loop(Connector::Endpoint *endpoint,int update_period); |
ansond | 0:1f1f55e73248 | 48 | |
ansond | 0:1f1f55e73248 | 49 | #endif // __MBED_ENDPOINT_NETWORK_H__ |
ansond | 0:1f1f55e73248 | 50 |