=== DASHBOARD FLOW DEBUG ===

1. Running dashboard query...
✓ Query executed successfully

2. Processing devices (following exact dashboard flow)...

Device #1:
  MAC: 8C:BF:EA:01:16:0C
  Binary IP length: 4
  Binary IP (hex): 4b18d2b0
  Converted IP: 75.24.210.176
  ✓ Added to ipList

Device #2:
  MAC: 94:A9:90:06:3C:6C
  Binary IP length: 4
  Binary IP (hex): 6cee681a
  Converted IP: 108.238.104.26
  ✓ Added to ipList

Device #3:
  MAC: 8C:BF:EA:01:80:D4
  Binary IP length: 4
  Binary IP (hex): c6a18588
  Converted IP: 198.161.133.136
  ✓ Added to ipList

Device #4:
  MAC: 98:A3:16:DF:FE:C8
  Binary IP length: 4
  Binary IP (hex): 6306e740
  Converted IP: 99.6.231.64
  ✓ Added to ipList

Device #5:
  MAC: 94:A9:90:04:DC:F8
  Binary IP length: 4
  Binary IP (hex): 32b996f2
  Converted IP: 50.185.150.242
  ✓ Added to ipList

3. IP List Summary:
  Total IPs collected: 5
  Unique IPs: 5
  IPs: 75.24.210.176, 108.238.104.26, 198.161.133.136, 99.6.231.64, 50.185.150.242

4. Calling batchGetLocations...
  Locations returned: 5
  Location data:
    75.24.210.176 => Overland Park, Kansas
    108.238.104.26 => Rainbow City, Alabama
    198.161.133.136 => Cadott, Wisconsin
    99.6.231.64 => Dallas, Texas
    50.185.150.242 => Miami, Florida

5. Building devices array...

Processing buffer entry #1:
  MAC: 8C:BF:EA:01:16:0C
  IP: 75.24.210.176
  Checking location for IP '75.24.210.176'...
  isset($locs['75.24.210.176']): YES
  ✓ Location found: Overland Park, Kansas
  Final state: Kansas

Processing buffer entry #2:
  MAC: 94:A9:90:06:3C:6C
  IP: 108.238.104.26
  Checking location for IP '108.238.104.26'...
  isset($locs['108.238.104.26']): YES
  ✓ Location found: Rainbow City, Alabama
  Final state: Alabama

Processing buffer entry #3:
  MAC: 8C:BF:EA:01:80:D4
  IP: 198.161.133.136
  Checking location for IP '198.161.133.136'...
  isset($locs['198.161.133.136']): YES
  ✓ Location found: Cadott, Wisconsin
  Final state: Wisconsin

Processing buffer entry #4:
  MAC: 98:A3:16:DF:FE:C8
  IP: 99.6.231.64
  Checking location for IP '99.6.231.64'...
  isset($locs['99.6.231.64']): YES
  ✓ Location found: Dallas, Texas
  Final state: Texas

Processing buffer entry #5:
  MAC: 94:A9:90:04:DC:F8
  IP: 50.185.150.242
  Checking location for IP '50.185.150.242'...
  isset($locs['50.185.150.242']): YES
  ✓ Location found: Miami, Florida
  Final state: Florida

6. Testing edge cases...
  Records with NULL/empty IP: 0
  IP binary lengths in database:
    Length 4: 299850 records

7. Checking for duplicate IP processing...

=== END OF DEBUG ===