123

Revision:
16:269f652b4d0b
Parent:
15:53715cc81c63
diff -r 53715cc81c63 -r 269f652b4d0b UipEthernet.cpp
--- a/UipEthernet.cpp	Sat Sep 07 17:42:42 2019 +0000
+++ b/UipEthernet.cpp	Fri Jun 05 15:12:21 2020 +0000
@@ -113,7 +113,7 @@
  * @param
  * @retval
  */
-int UipEthernet::connect(unsigned long timeout)
+int UipEthernet::connect(unsigned long timeout /*=60*/)
 {
     // Inicialize static pointer to the UIPEthernet instance
     ethernet = this;
@@ -323,6 +323,17 @@
  * @param
  * @retval
  */
+void UipEthernet::get_ip_address(SocketAddress* addr)
+{
+    localIP().toSocketAddress(addr);
+}
+
+/**
+ * @brief
+ * @note
+ * @param
+ * @retval
+ */
 const char* UipEthernet::get_netmask()
 {
     static char buf[16];
@@ -335,6 +346,17 @@
  * @param
  * @retval
  */
+void UipEthernet::get_netmask(SocketAddress* addr)
+{
+    return subnetMask().toSocketAddress(addr);
+}
+
+/**
+ * @brief
+ * @note
+ * @param
+ * @retval
+ */
 const char* UipEthernet::get_gateway()
 {
     static char buf[16];
@@ -347,6 +369,17 @@
  * @param
  * @retval
  */
+void UipEthernet::get_gateway(SocketAddress* addr)
+{
+    return gatewayIP().toSocketAddress(addr);
+}
+
+/**
+ * @brief
+ * @note
+ * @param
+ * @retval
+ */
 void UipEthernet::tick()
 {
     if (inPacket == NOBLOCK) {