Skip to content
Closed
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Fix compatibility with Ethernet.begin(nullptr) by removing begin(cons…
…t char* hostname) method.
  • Loading branch information
Channel59 committed Jul 9, 2024
commit e4bec356ddfdac06580b5ff2dd22ac232af426a8
6 changes: 0 additions & 6 deletions libraries/Ethernet/src/Ethernet.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -29,12 +29,6 @@ int arduino::EthernetClass::setHostname(const char* hostname) {
return 1;
}

int arduino::EthernetClass::begin(const char* hostname) {
eth_if->set_hostname(hostname);
auto ret = begin();
return ret;
}

int arduino::EthernetClass::begin(uint8_t *mac, IPAddress ip) {
IPAddress dns = ip;
dns[3] = 1;
Expand Down
1 change: 0 additions & 1 deletion libraries/Ethernet/src/Ethernet.h
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,6 @@ class EthernetClass : public MbedSocketClass {
// gain the rest of the configuration through DHCP.
// Returns 0 if the DHCP configuration failed, and 1 if it succeeded
int begin(uint8_t *mac = nullptr, unsigned long timeout = 60000, unsigned long responseTimeout = 4000);
int begin(const char* hostname);
EthernetLinkStatus linkStatus();
EthernetHardwareStatus hardwareStatus();

Expand Down