use TCP to connect to mbed connector
Fork of mbedConnectorInterfaceWithDM by
Diff: mbed-connector-interface/mbedEndpointNetwork.h
- Revision:
- 1:16f0fb5b8d97
- Parent:
- 0:1f1f55e73248
- Child:
- 6:d4d1105a1777
--- a/mbed-connector-interface/mbedEndpointNetwork.h Fri Feb 19 17:32:14 2016 +0000 +++ b/mbed-connector-interface/mbedEndpointNetwork.h Sun Feb 21 05:06:13 2016 +0000 @@ -1,50 +1,49 @@ -/** - * @file mbedEndpointNetwork.h - * @brief mbed Endpoint Network header - declares underling network instance - * @author Doug Anson - * @version 1.0 - * @see - * - * Copyright (c) 2014 - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - - #ifndef __MBED_ENDPOINT_NETWORK_H__ - #define __MBED_ENDPOINT_NETWORK_H__ - - // mbed-client support - #include "mbed-client/m2minterfacefactory.h" - #include "mbed-client/m2mdevice.h" - #include "mbed-client/m2minterfaceobserver.h" - #include "mbed-client/m2minterface.h" - #include "mbed-client/m2mobjectinstance.h" - #include "mbed-client/m2mresource.h" - - // mbed Connector Interface (configuration) - #include "mbed-connector-interface/mbedConnectorInterface.h" - - // Include the Connector::Endpoint - #include "mbed-connector-interface/ConnectorEndpoint.h" - - // Include the Connector::OptionsBuilder - #include "mbed-connector-interface/OptionsBuilder.h" - - // Linkage to the lower network APIs and interfaces - extern "C" void net_stubs_pre_plumb_network(bool canActAsRouterNode); - extern "C" void net_stubs_post_plumb_network(void); - extern "C" void net_stubs_create_main_loop(Connector::Endpoint *endpoint,M2MSecurity *server,M2MObjectList list); - extern "C" void net_stubs_begin_main_loop(Connector::Endpoint *endpoint,int update_period); - - #endif // __MBED_ENDPOINT_NETWORK_H__ +/** + * @file mbedEndpointNetwork.h + * @brief mbed Endpoint Network header - declares underling network instance + * @author Doug Anson + * @version 1.0 + * @see + * + * Copyright (c) 2014 + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + + #ifndef __MBED_ENDPOINT_NETWORK_H__ + #define __MBED_ENDPOINT_NETWORK_H__ + + // mbed-client support + #include "mbed-client/m2minterfacefactory.h" + #include "mbed-client/m2mdevice.h" + #include "mbed-client/m2minterfaceobserver.h" + #include "mbed-client/m2minterface.h" + #include "mbed-client/m2mobjectinstance.h" + #include "mbed-client/m2mresource.h" + // mbed Connector Interface (configuration) + #include "mbed-connector-interface/mbedConnectorInterface.h" + + // Include the Connector::Endpoint + #include "mbed-connector-interface/ConnectorEndpoint.h" + + // Include the Connector::OptionsBuilder + #include "mbed-connector-interface/OptionsBuilder.h" + + // Linkage to the lower network APIs and interfaces + extern "C" void net_stubs_plumb_network(void *p); + extern "C" void net_stubs_create_main_loop(Connector::Endpoint *endpoint); + extern "C" void net_stubs_begin_main_loop(Connector::Endpoint *endpoint); + + #endif // __MBED_ENDPOINT_NETWORK_H__ +