File tree Expand file tree Collapse file tree 5 files changed +4
-107
lines changed
features/nanostack/FEATURE_NANOSTACK Expand file tree Collapse file tree 5 files changed +4
-107
lines changed Original file line number Diff line number Diff line change @@ -27,7 +27,7 @@ class Mesh6LoWPAN_ND : public AbstractMesh
27
27
{
28
28
29
29
public:
30
-
30
+ Mesh6LoWPAN_ND ();
31
31
virtual ~Mesh6LoWPAN_ND ();
32
32
33
33
/* *
@@ -51,11 +51,6 @@ class Mesh6LoWPAN_ND : public AbstractMesh
51
51
friend class MeshInterfaceFactory ;
52
52
53
53
private:
54
- /*
55
- * \brief private constructor for the 6LoWPAN_ND
56
- */
57
- Mesh6LoWPAN_ND ();
58
-
59
54
/*
60
55
* avoid copy/assign object
61
56
*/
Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -29,6 +29,7 @@ class MeshThread : public AbstractMesh
29
29
public:
30
30
31
31
virtual ~MeshThread ();
32
+ MeshThread ();
32
33
33
34
/*
34
35
* \brief Initialization of the interface.
@@ -64,11 +65,6 @@ class MeshThread : public AbstractMesh
64
65
friend class MeshInterfaceFactory ;
65
66
66
67
private:
67
- /*
68
- * \brief private constructor for the MeshThread
69
- */
70
- MeshThread ();
71
-
72
68
/*
73
69
* avoid copy/assign object
74
70
*/
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 23
23
#include " eventOS_scheduler.h"
24
24
#include " randLIB.h"
25
25
26
- #include " mbed-mesh-api/MeshInterfaceFactory.h"
27
-
28
26
#include " mesh_system.h" // from inside mbed-mesh-api
29
27
#include " socket_api.h"
30
28
#include " net_interface.h"
@@ -559,7 +557,7 @@ nsapi_error_t ThreadInterface::connect()
559
557
mesh_system_init ();
560
558
nanostack_lock ();
561
559
562
- mesh_api = MeshInterfaceFactory::createInterface (MESH_TYPE_THREAD) ;
560
+ mesh_api = new MeshThread ;
563
561
if (!mesh_api) {
564
562
nanostack_unlock ();
565
563
return NSAPI_ERROR_NO_MEMORY;
@@ -590,7 +588,7 @@ nsapi_error_t LoWPANNDInterface::connect()
590
588
mesh_system_init ();
591
589
nanostack_lock ();
592
590
593
- mesh_api = MeshInterfaceFactory::createInterface (MESH_TYPE_6LOWPAN_ND) ;
591
+ mesh_api = new Mesh6LoWPAN_ND ;
594
592
if (!mesh_api) {
595
593
nanostack_unlock ();
596
594
return NSAPI_ERROR_NO_MEMORY;
You can’t perform that action at this time.
0 commit comments