Ethernet-based network support for mbedConnectorInterface.
Dependencies: libnsdl EthernetInterface mbed-rtos
Dependents: IoT_LED_demo ServoTest uWater_Project hackathon ... more
Diff: network_stubs/network_stubs.cpp
- Revision:
- 2:c7a1aad25a18
- Parent:
- 1:cb681dfa1678
- Child:
- 3:3e1ad8ab5071
diff -r cb681dfa1678 -r c7a1aad25a18 network_stubs/network_stubs.cpp --- a/network_stubs/network_stubs.cpp Mon Feb 02 06:12:30 2015 +0000 +++ b/network_stubs/network_stubs.cpp Mon Feb 02 06:37:09 2015 +0000 @@ -38,10 +38,6 @@ // create a suitable main event loop for this specific network void net_stubs_create_main_loop(void) { - // initialize NSDL - DBG("initNetwork: initializing NSP..\r\n."); - nsdl_init(); - // we simply configure the endpoint DBG("initNetwork: configuring endpoint...\r\n"); configure_endpoint(); @@ -50,6 +46,10 @@ // register the endpoint void net_stubs_register_endpoint(void) { + // initialize NSDL + DBG("initNetwork: initializing NSP..\r\n."); + nsdl_init(); + // NSP registration DBG("initNetwork: calling NSP registration...\r\n"); register_endpoint(true);