Skip to content

Commit

Permalink
Merge pull request #176 from JAndrassy/wific3_wifi_dnsip
Browse files Browse the repository at this point in the history
WiFiC3 - dnsIP(n) getter added
  • Loading branch information
facchinm authored Dec 4, 2023
2 parents c0f158f + 730de9e commit b99dca4
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
5 changes: 5 additions & 0 deletions libraries/WiFi/src/WiFi.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -223,6 +223,11 @@ IPAddress CWifi::gatewayIP() {
return IPAddress((uint32_t)0);
}

/* -------------------------------------------------------------------------- */
IPAddress CWifi::dnsIP(int n) {
return CLwipIf::getInstance().getDns(n);
}

/* -------------------------------------------------------------------------- */
const char* CWifi::SSID(uint8_t networkItem) {
return CLwipIf::getInstance().getSSID(networkItem);
Expand Down
7 changes: 7 additions & 0 deletions libraries/WiFi/src/WiFiC3.h
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,13 @@ class CWifi {
*/
IPAddress gatewayIP();

/*
* Get the DNS server IP address.
*
* return: DNS server IP address value
*/
IPAddress dnsIP(int n = 0);

/*
* Return the current SSID associated with the network
*
Expand Down

0 comments on commit b99dca4

Please sign in to comment.