Skip to content

Commit

Permalink
MbedClient: make status() private
Browse files Browse the repository at this point in the history
  • Loading branch information
pennam committed Jun 27, 2024
1 parent 636b20e commit 4aff80b
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 8 deletions.
6 changes: 0 additions & 6 deletions libraries/SocketWrapper/src/AClient.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -65,12 +65,6 @@ uint8_t arduino::AClient::connected() {
return client->connected();
}

uint8_t arduino::AClient::status() {
if (!client)
return false;
return client->status();
}

IPAddress arduino::AClient::remoteIP() {
if (!client)
return INADDR_NONE;
Expand Down
1 change: 0 additions & 1 deletion libraries/SocketWrapper/src/AClient.h
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,6 @@ class AClient : public Client {

virtual explicit operator bool();
virtual uint8_t connected();
uint8_t status();

IPAddress remoteIP();
uint16_t remotePort();
Expand Down
2 changes: 1 addition & 1 deletion libraries/SocketWrapper/src/MbedClient.h
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,6 @@ class MbedClient {

void setNetwork(NetworkInterface* network) {_network = network;}

uint8_t status();
int connect(SocketAddress socketAddress);
virtual int connect(IPAddress ip, uint16_t port);
virtual int connect(const char* host, uint16_t port);
Expand Down Expand Up @@ -108,6 +107,7 @@ class MbedClient {
rtos::Mutex* mutex = nullptr;
unsigned long _timeout;

uint8_t status();
void readSocket();
void getStatus();
};
Expand Down

0 comments on commit 4aff80b

Please sign in to comment.