I tryed cat /tmp/dhcp.leases | wc -l
but have a time delay.
Is there any way to get the number of devices in real time, including wired and wireless devices?
I tryed cat /tmp/dhcp.leases | wc -l
but have a time delay.
Is there any way to get the number of devices in real time, including wired and wireless devices?
My solution is
opkg update
opkg install arp-scan
arp-scan --interface=br-lan --localnet | grep responded | awk '{print $12}'
it will return the number of devices which connected to OpenWRT by LAN port. Almost real time.