This is an old revision of the document!
WMPRO, WMMINI FW >= 1.0 WMMEGA FW >= 2.0
Set a value in NVRAM for a particular key. If the key already exists, it will overwrite the value with the new one.
$key: String variable name to set associated value for
<b><span style=“color:blue”>$value<span style=“color:black”></b></html>: String value to set. If you wish to set a numeric value, first convert into a string using strval() or number_format()
int: returns 1 on success and 0 on failure
<? $res=nvram_set("myvariable","Test"); if (!$res) { print("Error saving NVRAM key/value"); } ?>
nvram_get() - Get a value in NVRAM</html>