Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
en:software:homelab:library:module:ethernet [2012/06/29 14:46] raivo.sellen:software:homelab:library:module:ethernet [2020/07/20 12:00] (current) – external edit 127.0.0.1
Line 54: Line 54:
  
  
-~~PB~~+<pagebreak>
  
 ===== Example ===== ===== Example =====
Line 158: Line 158:
  // Load webpage header  // Load webpage header
  
-plen=ethernet_load_data(buf,0,PSTR("HTTP/1.0 200 OK\r\nContent-Type: text/html\r\nPragma: no-cache\r\n\r\n"));+ plen=ethernet_load_data(buf,0,PSTR 
 + ("HTTP/1.0 200 OK\r\nContent-Type: text/html\r\nPragma: no-cache\r\n\r\n"));
          
-    plen=ethernet_load_data(buf,plen,PSTR("<center><p>Homelab PB7 LED: "));+ plen=ethernet_load_data(buf,plen,PSTR("<center><p>Homelab PB7 LED: "));
   
     // if LED is off, display it     // if LED is off, display it
Line 173: Line 174:
     }     }
     // Lae "Refresh" nupp     // Lae "Refresh" nupp
-    plen=ethernet_load_data(buf,plen,PSTR(" <small><a href=\".\">[refresh status]</a></small></p>\n<p><a href=\"."));+    plen=ethernet_load_data(buf,plen,PSTR 
 +    (" <small><a href=\".\">[refresh status]</a></small></p>\n<p><a href=\"."));
          
     // Load the button for LED condition change.     // Load the button for LED condition change.
Line 192: Line 194:
  
 </code> </code>
- 
en/software/homelab/library/module/ethernet.1340970370.txt.gz · Last modified: (external edit)
CC Attribution-Share Alike 4.0 International
www.chimeric.de Valid CSS Driven by DokuWiki do yourself a favour and use a real browser - get firefox!! Recent changes RSS feed Valid XHTML 1.0