2009/dap/system-info Overview.html,1.24,1.25

Update of /sources/public/2009/dap/system-info
In directory hutz:/tmp/cvs-serv23250

Modified Files:
	Overview.html 
Log Message:
moving on to network, starting with example


Index: Overview.html
===================================================================
RCS file: /sources/public/2009/dap/system-info/Overview.html,v
retrieving revision 1.24
retrieving revision 1.25
diff -u -d -r1.24 -r1.25
--- Overview.html	7 Dec 2009 16:38:01 -0000	1.24
+++ Overview.html	8 Dec 2009 08:54:19 -0000	1.25
@@ -238,7 +238,7 @@
 
       <!--******************* Internal Sensors *******************************************-->
       <section>
-        <h3>Internal Sensors</h3>
+        <h3>Internal Sensors (CPU, Fans, Temperature)</h3>
         <p>This section defines a set of APIs that expose sensor
         information pertaining to the internal state of the
         device. For example, <abbr title="Central Processing
@@ -302,7 +302,7 @@
           </section>
 
           <section>
-            <h5>Internal Cooling Fan</h5>
+            <h5>Cooling Fan</h5>
             <ul>
               <li>URI: <code>http://www.w3.org/2009/dap/sysinfo/internal#fanThrottle</code></li>
               <li>Curie: <code>internal:fanThrottle</code></li>
@@ -327,8 +327,21 @@
       </section>
       <!--******************** /Internal **********************************-->
 
+      <section>
+        <h3>Network</h3>
+        <p>Properties relating to the type or capabilities of the device's internet connections</p>
+        <section>
+          <h4>Example</h4>
+          <pre>
+function success(net) {
+  if(net.type==NetState.WI_FI) 
+    document.getElementById("Wireless adaptor connected to "+net.wifi.essid+
+                            " at "+(net.wifi.signalStrength*100)+"%");
+}
 
+navigator.device.system.watch("net:type",success,null);
 
+      <!--******************** /Internal **********************************-->
   <section>
     <h3>Display</h3>
       <p>The <code>window.screen</code> object already exposes width, height, availWidth, availHeight,

Received on Tuesday, 8 December 2009 08:54:23 UTC