Differences

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

Link to this comparison view

Both sides previous revision Previous revision
sdk:status-values-via-snmp [2015/07/07 13:16]
fachet [Extended example]
sdk:status-values-via-snmp [2015/07/07 13:16] (current)
fachet [Extended example]
Line 128: Line 128:
       if (s.name == "​RESET_DATA"​ && s.value == "​reset"​) {       if (s.name == "​RESET_DATA"​ && s.value == "​reset"​) {
           nb_reset_statistics("​wanlink0"​);​           nb_reset_statistics("​wanlink0"​);​
-          if (nb_snmp_update("​RESET_DATA",​ strftime("​%d.%m.%Y %H:​%M:​%S",​ localtime(time()))) == -1) exit(10);+          if (nb_snmp_update("​RESET_DATA",​ strftime("​%d.%m.%Y %H:​%M:​%S",​ localtime(time()))) == -1) exit(11);
       }       }
 } </​code>​ } </​code>​