User Contributed Notes 1 note

Part of my diploma thesis was to create web interface to command device via SNMP. So I create my own level of abstraction over SNMP class:

<?php

/** * Snmp library which add one level of abstraction to snmp native library. * It adds functionality to work with module PicoIP.With this library you can: * 1.Activate/deactive defined pin; * 2.Get status of all pins. * * When make an instance you should pass to the constructor key word which will * make the library create an object with necessary properetis and access permissions. * * Private properties set some of configurations: * Host is IP address of the divece which we will command. * Two passwords are set for reading and writing. * Version of snmp protocol that we will use is version 1. * * @author Radoslav Madjev * @year 2016 * @version 1.0 beta * * */class snmp_lib {