More work for initial Cambium support

This commit is contained in:
laf
2015-04-06 23:03:19 +01:00
parent 8b7f8310f0
commit b3f368da07
7 changed files with 12053 additions and 1 deletions

View File

@@ -1,3 +1,11 @@
<?php
list(,$version,$hardware) = explode(" ", $device['sysDescr'],3);
$canopy_type = snmp_get($device,"boxDeviceType.0", "-Oqv", "WHISP-BOX-MIBV2-MIB");
if (stristr($canopy_type,"MIMO OFDM")) {
$hardware = 'PMP 450';
} elseif (stristr($canopy_type,"OFDM")) {
$hardware = 'PMP 430';
} else {
$hardware = 'PMP 100';
}