User Tools

Site Tools


uphp:functions:nvram_get

Differences

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

Link to this comparison view

Next revision
Previous revision
uphp:functions:nvram_get [2017/05/11 09:20]
admin created
uphp:functions:nvram_get [2021/09/13 05:57] (current)
Line 1: Line 1:
 ======nvram_get====== ======nvram_get======
  
-<badge>WMPRO, WMMINI FW >= 1.1015</badge> <badge>WMMEGA FW >= 2.0</badge>+<badge>WMPRO, WMMINI FW >= 1.0</badge> <badge>WMMEGA FW >= 2.0</badge>
  
-Get a value from NVRAM+Get a value from <tooltip title="Non-Volatile RAM">NVRAM</tooltip>
  
 ====Description==== ====Description====
  
 <well size="sm"><html> <well size="sm"><html>
-<span style="color:green">mixed+<span style="font-size:125%;color:green">mixed
 <span style="color:black">nvram_get ( <span style="color:black">nvram_get (
 <span style="color:green">string <span style="color:green">string
Line 17: Line 17:
 ====Parameter==== ====Parameter====
  
-<html><b><span style="color:blue">$key<span style="color:black"></b></html>:  String variable name to get associated value for+<html><b><span style="color:blue">$key<span style="color:black"></b>:  <b><span style="color:green">String<span style="color:black"></b> variable name to get associated value for</html>
  
 ====Return Values==== ====Return Values====
  
-<html><b><span style="color:green">mixed<span style="color:black"></b></html>:  value from NVRAM - depending on the value it will either return a string, and int or a float.  This is automatically done based on the contents of the variable.  The actual value in NVRAM is always stored as a string.  If the value is not found it returns 0.+<html><b><span style="color:green">Mixed<span style="color:black"></b>:  The value from </html><tooltip title="Non-Volatile RAM">NVRAM</tooltip><html> - depending on the value it will either return a <b><span style="color:green">string<span style="color:black"></b>an <b><span style="color:green">integer<span style="color:black"></b> or a <b><span style="color:green">float<span style="color:black"></b>.  This is automatically done based on the contents of the variable.  The actual value in </html><tooltip title="Non-Volatile RAM">NVRAM</tooltip><html> is always stored as a <b><span style="color:green">string<span style="color:black"></b>.  If the value is not found it returns <b><span style="color:green">int<span style="color:black"></b> 0.</html>
  
 ====Example==== ====Example====
Line 30: Line 30:
   if ($res) {   if ($res) {
     print("The NVRAM Variable myvariable contains: ".$res);     print("The NVRAM Variable myvariable contains: ".$res);
-  } +  }
 ?> ?>
 </code> </code>
 +
 ====See Also==== ====See Also====
  
-[[nvram_set()]] - Set a value in NVRAM</html>+[[nvram_set()]] - Set a key and value in <tooltip title="Non-Volatile RAM">NVRAM</tooltip>
uphp/functions/nvram_get.1494494403.txt.gz · Last modified: 2021/09/13 05:56 (external edit)