JackNova / tplink

tplink router integration
https://tplink.readthedocs.io/en/latest/
MIT License
1 stars 9 forks source link

get_connected_devices() does not return all connected devices #2

Open PetePriority opened 5 years ago

PetePriority commented 5 years ago

Description

On my Archer C50, get_connected_devices() seems to return only clients that directly communicated with my router and not its network clients. My router simply serves as an access point and has DHCP disabled. After inspecting the network traffic while using the web interface, I found that a POST request to cgi?6 with payload

payload = ("[LAN_WLAN_ASSOC_DEV#0,0,0,0,0,0#1,0,0,0,0,0]0,4\r\n"
        "AssociatedDeviceMACAddress\r\n"
        "X_TP_TotalPacketsSent\r\n"
        "X_TP_TotalPacketsReceived\r\n"
        "X_TP_HostName\r\n")

returned all my network clients (in my case LAN, 2.5GHz, and 5GHz wireless).

Could you please verify if this request also works with your device?

JackNova commented 5 years ago

I'll check it out, thanks @PetePriority