Skip to content

Commit 62558e9

Browse files
author
Seppo Takalo
committed
Get rid of AbstractNetworkInterface class.
1 parent 154d664 commit 62558e9

File tree

3 files changed

+11
-88
lines changed

3 files changed

+11
-88
lines changed

features/nanostack/FEATURE_NANOSTACK/mbed-mesh-api/mbed-mesh-api/AbstractMesh.h

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,14 +17,14 @@
1717
#ifndef __ABSTRACTMESH_H__
1818
#define __ABSTRACTMESH_H__
1919

20-
#include "AbstractNetworkInterface.h"
2120
#include "mbed.h"
21+
#include "mesh_interface_types.h"
2222

2323
/**
2424
* \brief Abstract Mesh networking interface.
2525
* This class can't be instantiated directly.
2626
*/
27-
class AbstractMesh : public AbstractNetworkInterface
27+
class AbstractMesh
2828
{
2929

3030
public:
@@ -78,6 +78,15 @@ class AbstractMesh : public AbstractNetworkInterface
7878
* */
7979
void callback(mesh_connection_status_t state);
8080

81+
/**
82+
* \brief Read own global IP address
83+
*
84+
* \param address is where the IP address will be copied
85+
* \param len is the length of the address buffer, must be at least 40 bytes
86+
* \return true if address is read successfully, false otherwise
87+
*/
88+
virtual bool getOwnIpAddress(char *address, int8_t len) = 0;
89+
8190
protected:
8291

8392
/*

features/nanostack/FEATURE_NANOSTACK/mbed-mesh-api/mbed-mesh-api/AbstractNetworkInterface.h

Lines changed: 0 additions & 60 deletions
This file was deleted.

features/nanostack/FEATURE_NANOSTACK/mbed-mesh-api/source/AbstractNetworkInterface.cpp

Lines changed: 0 additions & 26 deletions
This file was deleted.

0 commit comments

Comments
 (0)