Ignore:
Timestamp:
Mar 9, 2016, 10:07:18 PM (9 years ago)
Author:
chronos
Message:
  • Added: Notify callback for checking state of network ports. Network ports can be defined as subtable under network interface.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Modules/NetworkConfigAirOS/Generators/Signal.php

    r781 r814  
    1111    // Load netwatch status from all DHCP routers
    1212    $DbResult3 = $this->Database->query('SELECT `Id`, `LoginName`, `LoginPassword`, '.
    13         '(SELECT `LocalIP` FROM `NetworkInterface` WHERE `NetworkInterface`.`Device` = `NetworkDevice`.`Id` LIMIT 1) AS `LocalIP` '.
    14         'FROM `NetworkDevice` WHERE (`API` = 2) AND (`Used` = 1)');
     13      '(SELECT `LocalIP` FROM `NetworkInterface` WHERE `NetworkInterface`.`Device` = `NetworkDevice`.`Id` LIMIT 1) AS `LocalIP` '.
     14      'FROM `NetworkDevice` WHERE (`API` = 2) AND (`Used` = 1)');
    1515    while($Device = $DbResult3->fetch_assoc())
    1616    {
     
    3434        $RateTx = $Properties['tx'];
    3535        $this->Database->insert('NetworkSignal', array('MAC' => $Properties['mac'],
    36             'Value' => $Strength, 'RateRx' => $RateRx, 'RateTx' => $RateTx,
    37             'Time' => TimeToMysqlDateTime($Time), 'Interface' => $Interface, 'Device' => $Device['Id']));
     36          'Value' => $Strength, 'RateRx' => $RateRx, 'RateTx' => $RateTx,
     37          'Time' => TimeToMysqlDateTime($Time), 'Interface' => $Interface, 'Device' => $Device['Id']));
    3838      }
    3939    }
Note: See TracChangeset for help on using the changeset viewer.