AutoPatrol, Bureaucrats, Administrators
683
edits
Line 8: | Line 8: | ||
lat = SNMPGetValue(transport, ".1.2.3.4.1"); | lat = SNMPGetValue(transport, ".1.2.3.4.1"); | ||
lon = SNMPGetValue(transport, ".1.2.3.4.2"); | |||
if (lat == null || | if (lat == null || lon == null) { | ||
return null; | return null; | ||
} | } | ||
geoLoc = new GeoLocation(lat, | geoLoc = new GeoLocation(lat, lon); | ||
$node->setGeoLocation(geoLoc); | $node->setGeoLocation(geoLoc); | ||
return 0; | return 0; | ||
</syntaxhighlight> | </syntaxhighlight> |