File tree Expand file tree Collapse file tree 2 files changed +12
-0
lines changed Expand file tree Collapse file tree 2 files changed +12
-0
lines changed Original file line number Diff line number Diff line change @@ -222,6 +222,11 @@ IPAddress CWifi::gatewayIP() {
222222 return IPAddress ((uint32_t )0 );
223223}
224224
225+ /* -------------------------------------------------------------------------- */
226+ IPAddress CWifi::dnsIP (int n) {
227+ return CLwipIf::getInstance ().getDns (n);
228+ }
229+
225230/* -------------------------------------------------------------------------- */
226231const char * CWifi::SSID (uint8_t networkItem) {
227232 return CLwipIf::getInstance ().getSSID (networkItem);
Original file line number Diff line number Diff line change @@ -136,6 +136,13 @@ class CWifi {
136136 */
137137 IPAddress gatewayIP ();
138138
139+ /*
140+ * Get the DNS server IP address.
141+ *
142+ * return: DNS server IP address value
143+ */
144+ IPAddress dnsIP (int n = 0 );
145+
139146 /*
140147 * Return the current SSID associated with the network
141148 *
You can’t perform that action at this time.
0 commit comments