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