File tree 2 files changed +12
-0
lines changed
2 files changed +12
-0
lines changed Original file line number Diff line number Diff line change @@ -223,6 +223,11 @@ IPAddress CWifi::gatewayIP() {
223
223
return IPAddress ((uint32_t )0 );
224
224
}
225
225
226
+ /* -------------------------------------------------------------------------- */
227
+ IPAddress CWifi::dnsIP (int n) {
228
+ return CLwipIf::getInstance ().getDns (n);
229
+ }
230
+
226
231
/* -------------------------------------------------------------------------- */
227
232
const char * CWifi::SSID (uint8_t networkItem) {
228
233
return CLwipIf::getInstance ().getSSID (networkItem);
Original file line number Diff line number Diff line change @@ -137,6 +137,13 @@ class CWifi {
137
137
*/
138
138
IPAddress gatewayIP ();
139
139
140
+ /*
141
+ * Get the DNS server IP address.
142
+ *
143
+ * return: DNS server IP address value
144
+ */
145
+ IPAddress dnsIP (int n = 0 );
146
+
140
147
/*
141
148
* Return the current SSID associated with the network
142
149
*
You can’t perform that action at this time.
0 commit comments