fix getUptime(), previous request endpoint returned always zero, now it returns the...
[GitHub/Stricted/speedport-hybrid-php-api.git] / lib / trait / Network.class.php
1 <?php
2 /**
3 * @author Jan Altensen (Stricted)
4 * @license GNU Lesser General Public License <http://opensource.org/licenses/lgpl-license.php>
5 * @copyright 2015 Jan Altensen (Stricted)
6 */
7 trait Network {
8 /**
9 * get all devices in network
10 *
11 * @return array
12 */
13 public function lanDeviceOverview () {
14 $data = $this->getData('LAN');
15 $data = $this->getValues($data);
16
17 if (isset($data['addmdevice'])) {
18 return $data['addmdevice'];
19 }
20 else {
21 return array();
22 }
23 }
24 }