Skip to content

Commit 6440ffa

Browse files
committed
cellular - Matched changes to the WiFiinterface in cellular
1 parent 0f40c12 commit 6440ffa

File tree

2 files changed

+3
-86
lines changed

2 files changed

+3
-86
lines changed

features/net/network-socket/CellularInterface.cpp

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

features/net/network-socket/CellularInterface.h

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -29,16 +29,15 @@ class CellularInterface : public NetworkInterface
2929
public:
3030
/** CellularInterface lifetime
3131
*/
32-
CellularInterface();
33-
virtual ~CellularInterface();
32+
virtual ~CellularInterface() {};
3433

3534
/** Set the cellular network APN and credentials
3635
*
3736
* @param apn Optional name of the network to connect to
3837
* @param user Optional username for the APN
3938
* @param pass Optional password fot the APN
4039
*/
41-
virtual int set_credentials(const char *apn, const char *user = 0, const char *pass = 0);
40+
virtual int set_credentials(const char *apn, const char *user = 0, const char *pass = 0) = 0;
4241

4342
/** Start the interface
4443
*
@@ -55,18 +54,13 @@ class CellularInterface : public NetworkInterface
5554
*
5655
* @return 0 on success, negative error code on failure
5756
*/
58-
virtual int connect();
57+
virtual int connect() = 0;
5958

6059
/** Stop the interface
6160
*
6261
* @return 0 on success, negative error code on failure
6362
*/
6463
virtual int disconnect() = 0;
65-
66-
private:
67-
char *_apn;
68-
char *_user;
69-
char *_pass;
7064
};
7165

7266

0 commit comments

Comments
 (0)