NetworkSocketAPI

Dependencies:   DnsQuery

Dependents:   HelloWizFi250Interface

Fork of NetworkSocketAPI by NetworkSocketAPI

Files at this revision

API Documentation at this revision

Comitter:
Christopher Haster
Date:
Wed Apr 20 19:20:51 2016 -0500
Parent:
115:950b19eb0f02
Child:
117:ff83eb6a1ab9
Commit message:
Added WFI to save power in temporary polling implementation

Changed in this revision

TCPServer.cpp Show annotated file Show diff for this revision Revisions of this file
TCPSocket.cpp Show annotated file Show diff for this revision Revisions of this file
UDPSocket.cpp Show annotated file Show diff for this revision Revisions of this file
--- a/TCPServer.cpp	Wed Apr 20 19:05:03 2016 -0500
+++ b/TCPServer.cpp	Wed Apr 20 19:20:51 2016 -0500
@@ -65,5 +65,7 @@
             || timer.read_ms() > _timeout) {
             return err;
         }
+
+        __WFI();
     }
 }
--- a/TCPSocket.cpp	Wed Apr 20 19:05:03 2016 -0500
+++ b/TCPSocket.cpp	Wed Apr 20 19:20:51 2016 -0500
@@ -66,6 +66,8 @@
             || timer.read_ms() > _timeout) {
             return sent;
         }
+
+        __WFI();
     }
 }
 
@@ -85,5 +87,7 @@
             || timer.read_ms() > _timeout) {
             return recv;
         }
+
+        __WFI();
     }
 }
--- a/UDPSocket.cpp	Wed Apr 20 19:05:03 2016 -0500
+++ b/UDPSocket.cpp	Wed Apr 20 19:20:51 2016 -0500
@@ -57,6 +57,8 @@
             || timer.read_ms() > _timeout) {
             return sent;
         }
+
+        __WFI();
     }
 }
 
@@ -76,5 +78,7 @@
             || timer.read_ms() > _timeout) {
             return recv;
         }
+
+        __WFI();
     }
 }